[evolution-patches] initialization (eds/servers/groupwise)



Simple initialization, missing which caused a crash.
in e-gw-item.c
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.157
diff -u -p -r1.157 ChangeLog
--- ChangeLog	3 Aug 2005 08:34:17 -0000	1.157
+++ ChangeLog	5 Aug 2005 07:05:20 -0000
@@ -1,3 +1,9 @@
+2005-08-05  Vivek Jain <jvivek novell com>
+
+	* e-gw_item.c: (add_attachment_to_soap_message):
+	'size' will be set conditionally, better initialized as NULL,
+	as we free it anyway.
+
 2005-08-02  Chenthill Palanisamy  <pchenthill novell com>
 
 	* e-gw-item.c: (e_gw_item_new_from_soap_parameter): Check
Index: e-gw-item.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.c,v
retrieving revision 1.92
diff -u -p -r1.92 e-gw-item.c
--- e-gw-item.c	3 Aug 2005 08:34:17 -0000	1.92
+++ e-gw-item.c	5 Aug 2005 07:05:20 -0000
@@ -2828,7 +2828,8 @@ e_gw_item_add_distribution_to_soap_messa
 static void
 add_attachment_to_soap_message(EGwItemAttachment *attachment, SoupSoapMessage *msg)
 {
-	char *size ;
+	char *size = NULL;
+
 	soup_soap_message_start_element (msg, "attachment", NULL, NULL) ;
 
 	/*id*/


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