Skip to content

FileChooserDefault: Avoid printf()ing a NULL char*

If the name of the bookmark is NULL, using it with the printf %s format specifier is undefined behaviour per the C Standard. Besides, it would result in a completely unhelpful tooltip even if it were well-defined.

We already have an else case for when nothing is selected, which avoids trying to use the name, so ensure we go there if it's NULL or empty too.

#1169 (closed)

Merge request reports