summaryrefslogtreecommitdiff
path: root/gsettings/gsettings-data-convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsettings/gsettings-data-convert.c')
-rw-r--r--gsettings/gsettings-data-convert.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gsettings/gsettings-data-convert.c b/gsettings/gsettings-data-convert.c
index 156045a4..d61c4bee 100644
--- a/gsettings/gsettings-data-convert.c
+++ b/gsettings/gsettings-data-convert.c
@@ -84,7 +84,11 @@ handle_file (const gchar *filename)
g_print ("for storage at '%s'\n", schema_path[1]);
}
- settings = g_settings_new_with_path (schema_path[0], schema_path[1]);
+ if (schema_path[1] != NULL)
+ settings = g_settings_new_with_path (schema_path[0], schema_path[1]);
+ else
+ settings = g_settings_new (schema_path[0]);
+
g_settings_delay (settings);
error = NULL;