[glib] glib-compile-schemas: Pass a C string, not a GString wrapper
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib-compile-schemas: Pass a C string, not a GString wrapper
- Date: Tue, 3 Aug 2010 18:34:21 +0000 (UTC)
commit 69341e2ba9a864ed2848527570988afc3e1c9df4
Author: David Zeuthen <davidz redhat com>
Date: Tue Aug 3 14:32:29 2010 -0400
glib-compile-schemas: Pass a C string, not a GString wrapper
Commit 5e6f762d61db1a5c64bd1d33e5ba112755106581 (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>
gio/gschema-compile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gschema-compile.c b/gio/gschema-compile.c
index f6b951e..5f8a437 100644
--- a/gio/gschema-compile.c
+++ b/gio/gschema-compile.c
@@ -614,7 +614,7 @@ key_state_serialise (KeyState *state)
}
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);
state->unparsed_default_value = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]