From d9545bc20c23425f71583e8966f64fdb5c613941 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 25 Oct 2001 00:27:39 +0000 Subject: Don't let fi->name be NULL. * providers/imap/camel-imap-store.c (unsubscribe_folder): Don't let fi->name be NULL. svn path=/trunk/; revision=14079 --- camel/providers/imap/camel-imap-store.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/providers') diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 6d996ffe9f..fccc43e45a 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -1663,6 +1663,8 @@ unsubscribe_folder (CamelStore *store, const char *folder_name, name = strrchr (folder_name, imap_store->dir_sep); if (name) name++; + else + name = folder_name; fi = g_new0 (CamelFolderInfo, 1); fi->full_name = g_strdup (folder_name); -- cgit