# HG changeset patch # User Mark Doliner # Date 1048278783 0 # Node ID e6b5cb0f2bd20ea2978033d8ed9f486ae2f39511 # Parent bce4d8f7dbf00deed95a50a33583e4a39f982310 [gaim-migrate @ 5173] Apparently trying to print a null string on SunOS x5.9 crashes Gaim. Thanks to Taso N. Devetzis for pointing this out and suggesting a fix. committer: Tailor Script diff -r bce4d8f7dbf0 -r e6b5cb0f2bd2 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Fri Mar 21 17:27:03 2003 +0000 +++ b/src/protocols/oscar/oscar.c Fri Mar 21 20:33:03 2003 +0000 @@ -4781,7 +4781,7 @@ va_end(ap); while (retval) { - debug_printf("ssi: status is 0x%04hx for a 0x%04hx action with name %s\n", retval->ack, retval->action, retval->item ? retval->item->name : "no item"); + debug_printf("ssi: status is 0x%04hx for a 0x%04hx action with name %s\n", retval->ack, retval->action, retval->item ? (retval->item->name ? retval->item->name : "no name") : "no item"); if (retval->ack != 0xffff) switch (retval->ack) {