diff libpurple/protocols/msn/slp.c @ 28289:db99cde1845c

Fix crashes when filenames end up being NULL in some prpls. Fixed a minor leak in MSNP9 while we're at it. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 16 Aug 2009 23:46:15 +0000
parents 00836f1fde84
children 83f02215c55f
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c	Sun Aug 16 23:28:12 2009 +0000
+++ b/libpurple/protocols/msn/slp.c	Sun Aug 16 23:46:15 2009 +0000
@@ -351,7 +351,7 @@
 
 			g_free(bin);
 
-			purple_xfer_set_filename(xfer, file_name);
+			purple_xfer_set_filename(xfer, file_name ? file_name : "");
 			g_free(file_name);
 			purple_xfer_set_size(xfer, file_size);
 			purple_xfer_set_init_fnc(xfer, msn_xfer_init);