filechooser: Assert that a string isn't NULL

It shouldn't ever be NULL, but lets make that explicit. since I've
been seeing crash reports that look like people are getting NULL
here.
This commit is contained in:
Matthias Clasen 2024-03-12 14:26:35 -04:00
parent 7e32eb2e98
commit aee0af34af

View File

@ -708,6 +708,7 @@ refresh_current_folder_and_file_part (GtkFileChooserEntry *chooser_entry)
old_file_part = chooser_entry->file_part;
text = gtk_file_chooser_entry_get_completion_text (chooser_entry);
g_return_if_fail (text != NULL);
last_slash = strrchr (text, G_DIR_SEPARATOR);
if (last_slash)