aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-01 12:25:43 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-01 12:25:43 +0800
commit65e948466dc663faefb47329c5cd3fec1e006d72 (patch)
tree06966b5922a5634b156de5e19d64f724a852b2ab
parent9e107fa9b9094d3d743a0cd9101a2cf8d802182b (diff)
downloadgsoc2013-evolution-65e948466dc663faefb47329c5cd3fec1e006d72.tar.gz
gsoc2013-evolution-65e948466dc663faefb47329c5cd3fec1e006d72.tar.zst
gsoc2013-evolution-65e948466dc663faefb47329c5cd3fec1e006d72.zip
Fix a possible bug where 'name' could be uninitialized.
2000-11-30 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): Fix a possible bug where 'name' could be uninitialized. * camel-folder-summary.c (camel_message_info_new): New convenience function, doesn't do much but it sure makes code cleaner to read. (camel_message_info_new_from_header): This one makes my life heaven. svn path=/trunk/; revision=6752
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/imap/camel-imap-store.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 95457c91bd..beb29aaf57 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2000-11-30 Jeffrey Stedfast <fejj@helixcode.com>
+ * providers/imap/camel-imap-store.c
+ (parse_list_response_as_folder_info): Fix a possible bug where
+ 'name' could be uninitialized.
+
* camel-folder-summary.c (camel_message_info_new): New convenience
function, doesn't do much but it sure makes code cleaner to read.
(camel_message_info_new_from_header): This one makes my life heaven.
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 7d87a9263e..aa5d003674 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -571,7 +571,7 @@ parse_list_response_as_folder_info (CamelImapStore *imap_store,
{
CamelFolderInfo *fi;
int flags;
- char sep, *dir, *name;
+ char sep, *dir, *name = NULL;
if (!imap_parse_list_response (response, &flags, &sep, &dir))
return NULL;