mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
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:
parent
7e32eb2e98
commit
aee0af34af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user