mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
glib-compile-schemas: Pass a C string, not a GString wrapper
Commit 5e6f762d61
(introducing UTF-8
validity checks for GVariant instances containing strsings) actually
uncovered a bug in glib-compile-schemas - a GString was passed when a
C string was expected.
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
5e6f762d61
commit
69341e2ba9
@ -614,7 +614,7 @@ key_state_serialise (KeyState *state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_variant_builder_add (&builder, "(y(y&s))", 'l', state->l10n,
|
g_variant_builder_add (&builder, "(y(y&s))", 'l', state->l10n,
|
||||||
state->unparsed_default_value);
|
state->unparsed_default_value->str);
|
||||||
g_string_free (state->unparsed_default_value, TRUE);
|
g_string_free (state->unparsed_default_value, TRUE);
|
||||||
state->unparsed_default_value = NULL;
|
state->unparsed_default_value = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user