summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Atallah <datallah@pidgin.im>2007-10-10 01:09:55 +0000
committerDaniel Atallah <datallah@pidgin.im>2007-10-10 01:09:55 +0000
commit6ef8a682c2b86bf2637f6b17414d9af59b78c404 (patch)
tree6c9e0ba7866e53a3778801d34c1129817e1c8633
parent4cc2746b0983f647f17b4ac9ed1d6e998ab54c9a (diff)
downloadpidgin-6ef8a682c2b86bf2637f6b17414d9af59b78c404.tar.gz
Prevent null ptr deref (CID 346).
-rw-r--r--libpurple/protocols/sametime/sametime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/protocols/sametime/sametime.c b/libpurple/protocols/sametime/sametime.c
index 52587aa2ca..b575bdbcaa 100644
--- a/libpurple/protocols/sametime/sametime.c
+++ b/libpurple/protocols/sametime/sametime.c
@@ -5563,7 +5563,7 @@ static void search_resolved(struct mwServiceResolve *srvc,
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);