changeset 14462:34a5709ff951

[gaim-migrate @ 17176] Fix bug #1553112 (printf("%s", NULL) stuff) committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 06 Sep 2006 03:12:05 +0000
parents 841ce6b110a8
children 7df4ab213577
files libgaim/protocols/gg/gg.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/gg/gg.c	Wed Sep 06 03:01:57 2006 +0000
+++ b/libgaim/protocols/gg/gg.c	Wed Sep 06 03:12:05 2006 +0000
@@ -1324,7 +1324,7 @@
 
 					gaim_debug_info("gg",
 						"notify: (%d) status: %d; descr: %s\n",
-						n->uin, n->status, descr);
+						n->uin, n->status, descr ? descr : "(null)");
 
 					ggp_generic_status_handler(gc,
 						n->uin, n->status, descr);
@@ -1335,7 +1335,8 @@
 			gaim_debug_info("gg",
 				"notify60_pre: (%d) status=%d; version=%d; descr=%s\n",
 				ev->event.notify60->uin, ev->event.notify60->status,
-				ev->event.notify60->version, ev->event.notify60->descr);
+				ev->event.notify60->version,
+				ev->event.notify60->descr ? ev->event.notify60->descr : "(null)");
 
 			for (i = 0; ev->event.notify60[i].uin; i++) {
 				gaim_debug_info("gg",
@@ -1343,7 +1344,7 @@
 					ev->event.notify60[i].uin,
 					ev->event.notify60[i].status,
 					ev->event.notify60[i].version,
-					ev->event.notify60[i].descr);
+					ev->event.notify60[i].descr ? ev->event.notify60[i].descr : "(null)");
 
 				ggp_generic_status_handler(gc, ev->event.notify60[i].uin,
 					ev->event.notify60[i].status,
@@ -1353,7 +1354,7 @@
 		case GG_EVENT_STATUS:
 			gaim_debug_info("gg", "status: (%d) status=%d; descr=%s\n",
 					ev->event.status.uin, ev->event.status.status,
-					ev->event.status.descr);
+					ev->event.status.descr ? ev->event.status.descr : "(null)");
 
 			ggp_generic_status_handler(gc, ev->event.status.uin,
 				ev->event.status.status, ev->event.status.descr);
@@ -1362,7 +1363,8 @@
 			gaim_debug_info("gg",
 				"status60: (%d) status=%d; version=%d; descr=%s\n",
 				ev->event.status60.uin, ev->event.status60.status,
-				ev->event.status60.version, ev->event.status60.descr);
+				ev->event.status60.version,
+				ev->event.status60.descr ? ev->event.status60.descr : "(null)");
 
 			ggp_generic_status_handler(gc, ev->event.status60.uin,
 				ev->event.status60.status, ev->event.status60.descr);