Commit 953f23f1 authored by Matthias Clasen's avatar Matthias Clasen

key file: Handle filename being NULL

This happens when we are default-constructed
without explicit arguments.

Closes: #1825
parent b80c17e3
Pipeline #94259 passed with stages
in 15 minutes and 58 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