changeset 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 bce4d8f7dbf0
children adf9ca39578f
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {