mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
gvariant-parser: Shut up a scan-build warning
Change a condition from one to an equivalent one to shut up a `scan-build` warning about potentially dereferencing a `NULL` value. This introduces no functional changes, as it’s not actually possible to dereference a `NULL` value here (but `scan-build` can’t link the nullability of `error` to the nullability of `result`). Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
15818926b3
commit
1111bc4cde
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user