Remove buggy check in handle_vcard_node() (Reported by Hermitifier)
authorMikael Berthe <mikael@lilotux.net>
Thu, 25 Feb 2010 21:21:43 +0100
changeset 1719 f3c5e1175b22
parent 1718 e2c6f1357f82
child 1720 98d99485d276
Remove buggy check in handle_vcard_node() (Reported by Hermitifier)
mcabber/mcabber/xmpp_iqrequest.c
--- a/mcabber/mcabber/xmpp_iqrequest.c	Mon Feb 15 17:00:28 2010 +0200
+++ b/mcabber/mcabber/xmpp_iqrequest.c	Thu Feb 25 21:21:43 2010 +0100
@@ -433,9 +433,10 @@
     enum vcard_attr vcard_attrib = 0;
 
     p = x->name;
+    if (!p)
+      continue;
+
     data = lm_message_node_get_value(x);
-    if (!p || !data)
-      continue;
 
     if (!strcmp(p, "FN"))
       display_vcard_item(barejid, "Name", vcard_attrib, data);