diff libpurple/protocols/jabber/jingle/rtp.c @ 27712:813f2eb3fdc8

Fixes for some potential printf("%s", NULL) type of problems from Maiku
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 28 Jul 2009 02:30:39 +0000
parents df9042312063
children 584fa66dfb31
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/rtp.c	Tue Jul 28 01:23:39 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/rtp.c	Tue Jul 28 02:30:39 2009 +0000
@@ -457,7 +457,8 @@
 		gchar *sid, gchar *name, JingleSession *session)
 {
 	purple_debug_info("jingle-rtp", "state-changed: state %d "
-			"id: %s name: %s\n", state, sid, name);
+			"id: %s name: %s\n", state, sid ? sid : "(null)",
+			name ? name : "(null)");
 }
 
 static void
@@ -466,7 +467,8 @@
 		JingleSession *session)
 {
 	purple_debug_info("jingle-rtp", "stream-info: type %d "
-			"id: %s name: %s\n", type, sid, name);
+			"id: %s name: %s\n", type, sid ? sid : "(null)",
+			name ? name : "(null)");
 
 	g_return_if_fail(JINGLE_IS_SESSION(session));