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:
Philip Withnall 2019-10-30 15:37:39 +00:00
parent 15818926b3
commit 1111bc4cde

View File

@ -2543,7 +2543,7 @@ g_variant_new_parsed_va (const gchar *format,
ast_free (ast); ast_free (ast);
} }
if (result == NULL) if (error != NULL)
g_error ("g_variant_new_parsed: %s", error->message); g_error ("g_variant_new_parsed: %s", error->message);
if (*stream.stream) if (*stream.stream)