summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-05-26 12:46:01 +0200
committerBastien Nocera <hadess@hadess.net>2015-07-10 16:03:46 +0200
commit4391c96cd9bd81b5c2d7fca68af9ed10802e97b6 (patch)
tree0214762886b313b9a2346ef2d0610fe7ac6680bc
parentf8e9945ef52023a9ee0c97413d515ba51ee8ef2e (diff)
grilo-test-ui: Fix possible uninitialised use
From coverity: grilo-0.2.12/tools/grilo-test-ui/main.c:776:20: warning: 'next_op_id' may be used uninitialized in this function [-Wmaybe-uninitialized] https://bugzilla.gnome.org/show_bug.cgi?id=749887
-rw-r--r--tools/grilo-test-ui/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index faf78d2..3513e16 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -770,9 +770,11 @@ browse_search_query_cb (GrlSource *source,
g_object_unref (options);
goto operation_finished;
break;
+ default:
+ g_assert_not_reached ();
}
g_object_unref (options);
- g_object_unref (supported_options);
+ g_object_unref (supported_options);
operation_started (source, next_op_id, FALSE);
} else {
/* We browsed all requested elements */