Commit 5eededcc authored by Daniel Boles's avatar Daniel Boles

gsettingsschema: Fix a compiler warning

g_build_filename() returns a gchar*, but it was stored in a const gchar*
and then g_free()d, which is wrong and led to a warning about the const
qualifier being cast away.
parent 7d64d109
......@@ -324,7 +324,7 @@ try_prepend_dir (const gchar *directory)
static void
try_prepend_data_dir (const gchar *directory)
const gchar *dirname = g_build_filename (directory, "glib-2.0", "schemas", NULL);
gchar *dirname = g_build_filename (directory, "glib-2.0", "schemas", NULL);
try_prepend_dir (dirname);
g_free (dirname);
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