glib: Various minor scan-build fixes

These squash various warnings from `scan-build`. None of them are
legitimate bugs, but some of them do improve code readability a bit.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #1767
This commit is contained in:
Philip Withnall
2019-05-01 12:53:56 +01:00
parent 7a33239bab
commit 18a232be89
12 changed files with 17 additions and 9 deletions

View File

@@ -2527,6 +2527,8 @@ g_variant_new_parsed_va (const gchar *format,
if (*stream.stream)
g_error ("g_variant_new_parsed: trailing text after value");
g_clear_error (&error);
return result;
}