From a8b5e22506409a6696b4d9e375b0a83511429bbd Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 1 Dec 2000 04:25:43 +0000 Subject: [PATCH] Fix a possible bug where 'name' could be uninitialized. 2000-11-30 Jeffrey Stedfast * 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. --- camel/ChangeLog | 4 ++++ camel/providers/imap/camel-imap-store.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 95457c9..beb29aa 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,9 @@ 2000-11-30 Jeffrey Stedfast + * 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 7d87a92..aa5d003 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; -- 2.7.4