mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
key file: Handle filename being NULL
This happens when we are default-constructed without explicit arguments. Closes: https://gitlab.gnome.org/GNOME/glib/issues/1825
This commit is contained in:
committed by
Philip Withnall
parent
0ef6ccab35
commit
715c8670ae
@@ -740,7 +740,8 @@ g_keyfile_settings_backend_set_property (GObject *object,
|
||||
case PROP_FILENAME:
|
||||
/* Construct only. */
|
||||
g_assert (kfsb->file == NULL);
|
||||
kfsb->file = g_file_new_for_path (g_value_get_string (value));
|
||||
if (g_value_get_string (value))
|
||||
kfsb->file = g_file_new_for_path (g_value_get_string (value));
|
||||
break;
|
||||
|
||||
case PROP_ROOT_PATH:
|
||||
|
Reference in New Issue
Block a user