changeset 32407:025230c2f7dd

Initialize parent_iter to prevent clang-analyzer from complaining. In fact, it's not a problem. If the node is not a group, then it has a group as a parent. If it is a group, then sort_method_none will be called, which checks node->parent before using the iter. But clang-analyzer can't know these things.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 22 Dec 2011 07:31:50 +0000
parents 6ee168374b2b
children 3a4a35f6f873
files pidgin/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Thu Dec 22 07:14:31 2011 +0000
+++ b/pidgin/gtkblist.c	Thu Dec 22 07:31:50 2011 +0000
@@ -6225,7 +6225,7 @@
 
 static gboolean insert_node(PurpleBuddyList *list, PurpleBlistNode *node, GtkTreeIter *iter)
 {
-	GtkTreeIter parent_iter, cur, *curptr = NULL;
+	GtkTreeIter parent_iter = {0, NULL, NULL, NULL}, cur, *curptr = NULL;
 	struct _pidgin_blist_node *gtknode = purple_blist_node_get_ui_data(node);
 	GtkTreePath *newpath;