From 6d9a23e4797668f979605cad83afde3a46c460b5 Mon Sep 17 00:00:00 2001 From: Joe Shaw Date: Tue, 10 Oct 2000 21:31:49 +0000 Subject: Check before deferencing the sep pointer. 2000-10-10 Joe Shaw * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): Check before deferencing the sep pointer. svn path=/trunk/; revision=5822 --- camel/ChangeLog | 6 ++++++ camel/providers/imap/camel-imap-store.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 3bc9613921..ebf2cca7a7 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-10-10 Joe Shaw + + * providers/imap/camel-imap-store.c + (parse_list_response_as_folder_info): Check before deferencing the + sep pointer. + 2000-10-10 Jacob "Ulysses" Berkman * camel-*.c: teach camel about "its" vs. "it's" diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index c985946044..723cfe8d19 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -474,7 +474,8 @@ parse_list_response_as_folder_info (const char *response, fi = g_new0 (CamelFolderInfo, 1); fi->full_name = dir; - fi->name = strrchr (dir, *sep); + if (sep) + fi->name = strrchr (dir, *sep); if (fi->name) fi->name = g_strdup (fi->name + 1); else -- cgit v1.2.3