1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-03-31 12:53:07 +02:00

Merge branch 'key-file-no-file' into 'master'

key file: Handle filename being NULL

Closes 

See merge request 
This commit is contained in:
Philip Withnall 2019-07-15 12:50:45 +00:00
commit 2ac44f3111

@ -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: