[evolution-patches] mail/importers/evolution-outlook-importer.c: uninitilized value fix



Hi Guys,

This is just a small fix for an uninitalized value usage, I think this
should yield the desired result.

Cheers,
Trent
Index: mail/importers/evolution-outlook-importer.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/importers/evolution-outlook-importer.c,v
retrieving revision 1.14
diff -u -r1.14 evolution-outlook-importer.c
--- mail/importers/evolution-outlook-importer.c	5 Mar 2004 07:10:27 -0000	1.14
+++ mail/importers/evolution-outlook-importer.c	10 Apr 2004 07:59:19 -0000
@@ -316,7 +316,7 @@
 		pos = 0x54;
 		do {
 			oe_msg_segmentheader header;
-			int pc;
+			int pc = 0;
 			size_t len;
 			CamelStream *mem;
 			CamelMimeMessage *msg;
Index: mail/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3188
diff -u -r1.3188 ChangeLog
--- mail/ChangeLog	25 Mar 2004 13:02:13 -0000	1.3188
+++ mail/ChangeLog	10 Apr 2004 07:59:57 -0000
@@ -1,3 +1,9 @@
+2004-04-10  Trent Lloyd  <lathiat sixlabs org>
+
+	* importers/evolution-outlook-importer.c (import_outlook_import):
+	Changed initialization of pc to 0 so it isnt used unitialized on line
+	319 if st.st_size > 0 is false
+
 2004-03-25  Sivaiah Nallagatla <snallagatla novell com>
 
 	* Makefile.am : remove local-config.glade from glade_DATA as it 


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