changeset 7505:d29c2f50ac24

[gaim-migrate @ 8118] Just for the release... committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 13 Nov 2003 22:46:41 +0000
parents 97e385fe462d
children 240aca6344b6
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Nov 13 21:30:16 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Nov 13 22:46:41 2003 +0000
@@ -3037,10 +3037,12 @@
 	destn = va_arg(ap, char *);
 	va_end(ap);
 
-	buf = g_strdup_printf(_("User information for %s unavailable:"), destn);
-	gaim_notify_error(sess->aux_data, NULL, buf,
-					  (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given."));
-	g_free(buf);
+	if (destn != NULL) {
+		buf = g_strdup_printf(_("User information for %s unavailable:"), destn);
+		gaim_notify_error(sess->aux_data, NULL, buf,
+						  (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given."));
+		g_free(buf);
+	}
 
 	return 1;
 }