# HG changeset patch # User Paul Aurich # Date 1260293014 0 # Node ID a299f96fb25c9df6ae4864b04d929fd8db1df6a1 # Parent 259bbfb423d4787b0149b0a79ae4dc83b7d9a419 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. diff -r 259bbfb423d4 -r a299f96fb25c libpurple/protocols/oscar/oscar.c --- 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;