changeset 25661:43c41aee8fcb

These checks are redundant; id is guaranteed to be something above
author Paul Aurich <paul@darkrain42.org>
date Tue, 10 Feb 2009 06:15:27 +0000
parents 751df82b78e7
children ba2b63988b3c
files libpurple/protocols/jabber/iq.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/iq.c	Tue Feb 10 06:12:24 2009 +0000
+++ b/libpurple/protocols/jabber/iq.c	Tue Feb 10 06:15:27 2009 +0000
@@ -352,7 +352,7 @@
 
 	/* First, lets see if a special callback got registered */
 	if(type == JABBER_IQ_RESULT || type == JABBER_IQ_ERROR) {
-		if(id && *id && (jcd = g_hash_table_lookup(js->iq_callbacks, id))) {
+		if(jcd = g_hash_table_lookup(js->iq_callbacks, id)) {
 			jcd->callback(js, packet, jcd->data);
 			jabber_iq_remove_callback_by_id(js, id);
 			return;