mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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.
This commit is contained in:
parent
7d64d109f0
commit
5eededccda
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user