--- libjabber/libEBjabber.c Mon Jan 22 22:27:30 2001 +++ libjabber/libEBjabber.c Fri Jun 1 19:50:36 2001 @@ -643,8 +643,7 @@ JB.jid=from; dprintf( "PRESENCE recieved type: %s from: %s\n", type, from); x = xmlnode_get_tag (packet->x, "show"); - if (x) { - show = xmlnode_get_data (x); + if (x && ((show = xmlnode_get_data(x) != NULL))) { printf ("show: %s\n", show); if (strcmp (show, "away") == 0) status = JABBER_AWAY; else if (strcmp (show, "dnd") == 0) status = JABBER_DND;