Check before deferencing the sep pointer.
authorJoe Shaw <joe@helixcode.com>
Tue, 10 Oct 2000 21:31:49 +0000 (21:31 +0000)
committerJoe Shaw <joeshaw@src.gnome.org>
Tue, 10 Oct 2000 21:31:49 +0000 (21:31 +0000)
2000-10-10  Joe Shaw  <joe@helixcode.com>

* providers/imap/camel-imap-store.c
(parse_list_response_as_folder_info): Check before deferencing the
sep pointer.

camel/ChangeLog
camel/providers/imap/camel-imap-store.c

index 3bc9613..ebf2cca 100644 (file)
@@ -1,3 +1,9 @@
+2000-10-10  Joe Shaw  <joe@helixcode.com>
+
+       * providers/imap/camel-imap-store.c 
+       (parse_list_response_as_folder_info): Check before deferencing the
+       sep pointer.
+
 2000-10-10  Jacob "Ulysses" Berkman  <jacob@helixcode.com>
 
        * camel-*.c: teach camel about "its" vs. "it's"
index c985946..723cfe8 100644 (file)
@@ -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