From: Ryan Lortie Date: Mon, 19 Apr 2010 15:05:04 +0000 (-0400) Subject: gschema-compile: return quickly on parse error X-Git-Tag: 2.25.2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c54cc074dc783ab4944e1cc15d690b467a09684;p=platform%2Fupstream%2Fglib.git gschema-compile: return quickly on parse error Suggested by Christian Persch in #616102 --- diff --git a/gio/gschema-compile.c b/gio/gschema-compile.c index 4e2de4d..1e31fae 100644 --- a/gio/gschema-compile.c +++ b/gio/gschema-compile.c @@ -360,6 +360,9 @@ end_element (GMarkupParseContext *context, state->value = g_variant_parse (state->type, state->string->str, NULL, NULL, error); + if (state->value == NULL) + return; + if (state->l10n) { if (state->context)