mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
Don't dereference a NULL
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
parent
3822a334c5
commit
1a3605a23f
@ -5858,7 +5858,7 @@ get_file_for_last_folder_opened (GtkFileChooserDefault *impl)
|
||||
/* If no last folder is set, we use the user's home directory, since
|
||||
* this is the starting point for most documents.
|
||||
*/
|
||||
if (last_folder_uri[0] == '\0')
|
||||
if (last_folder_uri == NULL || last_folder_uri[0] == '\0')
|
||||
file = g_file_new_for_path (g_get_home_dir ());
|
||||
else
|
||||
file = g_file_new_for_uri (last_folder_uri);
|
||||
|
Loading…
Reference in New Issue
Block a user