diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c index 8a6d4d316..bb5238bea 100644 --- a/glib/gvariant-parser.c +++ b/glib/gvariant-parser.c @@ -2543,7 +2543,7 @@ g_variant_new_parsed_va (const gchar *format, ast_free (ast); } - if (result == NULL) + if (error != NULL) g_error ("g_variant_new_parsed: %s", error->message); if (*stream.stream)