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
This commit is contained in:
Jeffrey Stedfast
2000-12-01 04:25:43 +00:00
committed by Jeffrey Stedfast
parent 9e107fa9b9
commit 65e948466d
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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.
+1 -1
View File
@@ -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;