diff libpurple/protocols/msn/msn.c @ 20775:d3443cb6a60f

Fix null printf.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 04 Oct 2007 03:52:47 +0000
parents 39737dfe1cca
children f3cfcbbac3d8 306f3c0bccd4 fdefa5eb46e2 d90f4c586a33
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));