evolution r37520 - trunk/widgets/misc



Author: jjohnny
Date: Mon Apr 13 10:34:42 2009
New Revision: 37520
URL: http://svn.gnome.org/viewvc/evolution?rev=37520&view=rev

Log:
BGO : 578685 : Copy string. Avoids SIGSEGV.

Modified:
   trunk/widgets/misc/ChangeLog
   trunk/widgets/misc/e-attachment-bar.c

Modified: trunk/widgets/misc/e-attachment-bar.c
==============================================================================
--- trunk/widgets/misc/e-attachment-bar.c	(original)
+++ trunk/widgets/misc/e-attachment-bar.c	Mon Apr 13 10:34:42 2009
@@ -442,6 +442,7 @@
 		}
 
 		desc = camel_mime_part_get_description (attachment->body);
+    
 		if (!desc || *desc == '\0') {
 			if (attachment->file_name) {
 				desc = g_filename_to_utf8 (attachment->file_name, -1, NULL, NULL, NULL);
@@ -450,6 +451,8 @@
 				if (desc)
 					desc = g_strdup (desc);
 			}
+		} else {
+			desc = g_strdup (desc);
 		}
 
 		if (!desc)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]