[grilo] grilo-test-ui: Fix possible uninitialised use



commit 4391c96cd9bd81b5c2d7fca68af9ed10802e97b6
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 26 12:46:01 2015 +0200

    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

 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  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]