[glib] gschema-compile: return quickly on parse error
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gschema-compile: return quickly on parse error
- Date: Tue, 20 Apr 2010 14:38:38 +0000 (UTC)
commit 3c54cc074dc783ab4944e1cc15d690b467a09684
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Apr 19 11:05:04 2010 -0400
gschema-compile: return quickly on parse error
Suggested by Christian Persch in #616102
gio/gschema-compile.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]