/pidgin/main: 38c5d7673339: Fix newly introduced blist bug

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 38c5d7673339e6dcabcae3a68e9abd32e39ad4bd
Author:	 Tomasz Wasilczyk <[email protected]>
Date:	 2014-05-07 11:44 +0200
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/38c5d7673339

Description:

Fix newly introduced blist bug

diffstat:

 pidgin/gtkblist.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c
--- a/pidgin/gtkblist.c
+++ b/pidgin/gtkblist.c
@@ -6257,15 +6257,15 @@ static gboolean insert_node(PurpleBuddyL
 	if(!iter)
 		return FALSE;
 
+	/* XXX: it's not necessary, but let's silence a warning*/
+	memset(&parent_iter, 0, sizeof(parent_iter));
+
 	if(node->parent && !get_iter_from_node(node->parent, &parent_iter))
 		return FALSE;
 
 	if(get_iter_from_node(node, &cur))
 		curptr = &cur;
 
-	/* XXX: it's not necessary, but let's silence a warning*/
-	memset(&parent_iter, 0, sizeof(parent_iter));
-
 	if(PURPLE_BLIST_NODE_IS_CONTACT(node) || PURPLE_BLIST_NODE_IS_CHAT(node)) {
 		current_sort_method->func(node, list, parent_iter, curptr, iter);
 	} else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.