[gtk+] Avoid uninitialized variables



commit 1bba3b0a3866f6f4cd7c5b7f5813eb9db56267ce
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 13 17:57:19 2015 -0400

    Avoid uninitialized variables
    
    clang complains that these may be used uninitialized.

 gtk/gtkplacessidebar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index f767e14..0255ed1 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1701,8 +1701,8 @@ start_drop_feedback (GtkPlacesSidebar        *sidebar,
           GtkTreeIter iter;
           GtkTreeIter iter_prev;
           GtkTreePath *path_prev;
-          gint new_bookmark_col_index;
-          SectionType section_type;
+          gint new_bookmark_col_index = 0;
+          SectionType section_type = SECTION_BOOKMARKS;
 
           /* Use column index of previous bookmark to calculate index for "new bookmark" */
           path_prev = gtk_tree_path_new_from_indices (sidebar->new_bookmark_index - 1, -1);


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