mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
gschema-compile: return quickly on parse error
Suggested by Christian Persch in #616102
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user