all: fix various warnings detected with coverity

https://bugzilla.gnome.org/show_bug.cgi?id=728320

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2014-04-15 16:54:38 +02:00
parent 981e33b83b
commit 9ef23947cc
10 changed files with 13 additions and 30 deletions

View File

@@ -699,7 +699,7 @@ parse_output_fields (const char *fields_str,
if (found) {
/* Add index to array, and field name (or NULL) to group_fields array */
g_array_append_val (array, idx);
if (*group_fields)
if (group_fields && *group_fields)
g_ptr_array_add (*group_fields, g_strdup (right));
}
if (right)