Skip to content

Conversation

@hainest
Copy link
Contributor

@hainest hainest commented Apr 4, 2025

Yet another item I thought I had included in #257...

@hainest hainest requested review from bbiiggppiigg and kupsch April 4, 2025 18:28
@hainest hainest self-assigned this Apr 4, 2025

char *dbname = params["dboutput"]->getString();
if (dbname) {
if (strlen(dbname) != 0UL) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand. getString can return null pointer, and calling strelen on null pointer can be undefined behavior isnt it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. It should. I was doing parallel updates with #258 that changed the default-initialization to not allow that case.

@hainest hainest merged commit ad0b973 into master Apr 4, 2025
1 check passed
@hainest hainest deleted the thaines/fix_log_filename branch April 4, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants