changeset 28772:a299f96fb25c

oscar: Avoid a printf("%s", NULL) crash when creating an AIM room. Both of these strings appear to be optional in parseinfo_create(), so we can't rely on their being non-NULL.
author Paul Aurich <paul@darkrain42.org>
date Tue, 08 Dec 2009 17:23:34 +0000
parents 259bbfb423d4
children e2ba2a8814c1
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Tue Dec 08 04:18:32 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Tue Dec 08 17:23:34 2009 +0000
@@ -3576,9 +3576,9 @@
 
 			purple_debug_misc("oscar",
 					"created room: %s %hu %hu %hu %u %hu %hu %hhu %hu %s %s\n",
-					fqcn, exchange, instance, flags, createtime,
+					fqcn ? fqcn : "(null)", exchange, instance, flags, createtime,
 					maxmsglen, maxoccupancy, createperms, unknown,
-					name, ck);
+					name ? name : "(null)", ck);
 			aim_chat_join(od, exchange, ck, instance);
 			}
 			break;