[evolution-patches] Fix for uninitialised stack value in upgrade_passwords_1_2
- From: David Malcolm <dmalcolm redhat com>
- To: Evolution Patches <evolution-patches ximian com>
- Subject: [evolution-patches] Fix for uninitialised stack value in upgrade_passwords_1_2
- Date: Wed, 29 Sep 2004 16:13:06 -0400
Fixes a compile-time warning, and a possible crash on migration if
something was up with ~/evolution/private/config.xmldb
Index: mail/em-migrate.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-migrate.c,v
retrieving revision 1.45
diff -u -r1.45 em-migrate.c
--- mail/em-migrate.c 21 Jul 2004 15:54:00 -0000 1.45
+++ mail/em-migrate.c 29 Sep 2004 20:06:52 -0000
@@ -698,7 +698,7 @@
{
xmlNodePtr root, entry;
char *filename;
- xmlDocPtr priv_doc;
+ xmlDocPtr priv_doc = NULL;
struct stat st;
int work = 0, res = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]