diff libpurple/protocols/sametime/sametime.c @ 20336:b93e7be3847b

applied changes from 9d35dde0c779cca73548172223ba557f27d61882 through cd26f6af7f8ee75ef909ae08b06ad5a1978051d9
author Luke Schierer <lschiere@pidgin.im>
date Sat, 20 Oct 2007 15:57:22 +0000
parents 44b4e8bd759b
children bbcc9e206c43 3cc856ca2338 7821fa7b22db fc80a99f6f40
line wrap: on
line diff
--- a/libpurple/protocols/sametime/sametime.c	Fri Oct 19 18:36:08 2007 +0000
+++ b/libpurple/protocols/sametime/sametime.c	Sat Oct 20 15:57:22 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);