From 5c3eeb95528778ea63cf8d4330b7ac70299d583f Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 4 Aug 2000 21:29:43 +0000 Subject: Coredump fix when IMAP get_folder with NULL dir_sep svn path=/trunk/; revision=4535 --- camel/providers/imap/camel-imap-store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/providers/imap') diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index d3ba8f14f9..c1ecedc05d 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -579,7 +579,7 @@ get_folder (CamelStore *store, const char *folder_name, gboolean create, CamelEx dir_sep = CAMEL_IMAP_STORE (store)->dir_sep; - if (!strcmp (folder_name, dir_sep)) + if (dir_sep && !strcmp (folder_name, dir_sep)) folder_path = g_strdup (url->path + 1); else folder_path = g_strdup (folder_name); -- cgit