# HG changeset patch # User Paul Aurich # Date 1234246527 0 # Node ID 43c41aee8fcb50a2c23879b9dcb7a7fc472ef970 # Parent 751df82b78e759b476c8acecbcf7d8a518db2ad6 These checks are redundant; id is guaranteed to be something above diff -r 751df82b78e7 -r 43c41aee8fcb libpurple/protocols/jabber/iq.c --- 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;