diff options
author | Bastien Nocera <hadess@hadess.net> | 2015-05-26 12:46:01 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2015-07-10 16:03:46 +0200 |
commit | 4391c96cd9bd81b5c2d7fca68af9ed10802e97b6 (patch) | |
tree | 0214762886b313b9a2346ef2d0610fe7ac6680bc | |
parent | f8e9945ef52023a9ee0c97413d515ba51ee8ef2e (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.c | 4 |
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 */ |