comparison src/protocols/oscar/oscar.c @ 4848:e6b5cb0f2bd2

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 21 Mar 2003 20:33:03 +0000
parents 654eb87fb336
children fbfdacf7c611
comparison
equal deleted inserted replaced
4847:bce4d8f7dbf0 4848:e6b5cb0f2bd2
4779 va_start(ap, fr); 4779 va_start(ap, fr);
4780 retval = va_arg(ap, struct aim_ssi_tmp *); 4780 retval = va_arg(ap, struct aim_ssi_tmp *);
4781 va_end(ap); 4781 va_end(ap);
4782 4782
4783 while (retval) { 4783 while (retval) {
4784 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"); 4784 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");
4785 4785
4786 if (retval->ack != 0xffff) 4786 if (retval->ack != 0xffff)
4787 switch (retval->ack) { 4787 switch (retval->ack) {
4788 case 0x0000: { /* added successfully */ 4788 case 0x0000: { /* added successfully */
4789 } break; 4789 } break;