Commit 2ac44f31 authored by Philip Withnall's avatar Philip Withnall

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

key file: Handle filename being NULL

Closes #1825

See merge request !984
parents 493b8ca0 953f23f1
Pipeline #95488 passed with stages
in 28 minutes and 49 seconds
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment