Avoid uninitialized variables

clang complains that these may be used uninitialized.
This commit is contained in:
Matthias Clasen 2015-06-13 17:57:19 -04:00
parent 8cbed0b04a
commit 1bba3b0a38

View File

@ -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);