# HG changeset patch # User Daniel Atallah # Date 1191978595 0 # Node ID 8f0dceea2ca4192ea05d7dac60be9e1fa3bb6246 # Parent 27d2d6cc8d36d3bd95def129c42cc7873c167d05 Prevent null ptr deref (CID 346). diff -r 27d2d6cc8d36 -r 8f0dceea2ca4 libpurple/protocols/sametime/sametime.c --- a/libpurple/protocols/sametime/sametime.c Wed Oct 10 00:54:35 2007 +0000 +++ b/libpurple/protocols/sametime/sametime.c Wed Oct 10 01:09:55 2007 +0000 @@ -5563,7 +5563,7 @@ msgA = _("No matches"); msgB = _("The identifier '%s' did not match any users in your" " Sametime community."); - msg = g_strdup_printf(msgB, NSTR(res->name)); + msg = g_strdup_printf(msgB, (res && res->name) ? NSTR(res->name) : ""); purple_notify_error(gc, _("No Matches"), msgA, msg);