changeset 20775:d3443cb6a60f

Fix null printf.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 04 Oct 2007 03:52:47 +0000
parents d1e8f4d63f01
children f3cfcbbac3d8 a068bcd78b61
files libpurple/protocols/msn/msn.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c	Thu Oct 04 02:42:15 2007 +0000
+++ b/libpurple/protocols/msn/msn.c	Thu Oct 04 03:52:47 2007 +0000
@@ -1985,7 +1985,7 @@
 #if PHOTO_SUPPORT
 	/* Find the URL to the photo; must be before the marshalling [Bug 994207] */
 	photo_url_text = msn_get_photo_url(url_text);
-	purple_debug_info("MSNP14","photo url:{%s}\n",photo_url_text);
+	purple_debug_info("MSNP14","photo url:{%s}\n", photo_url_text ? photo_url_text : "(null)");
 
 	/* Marshall the existing state */
 	info2_data = g_malloc0(sizeof(MsnGetInfoStepTwoData));