aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-08-05 05:29:43 +0800
committerPeter Williams <peterw@src.gnome.org>2000-08-05 05:29:43 +0800
commit5c3eeb95528778ea63cf8d4330b7ac70299d583f (patch)
tree3fe6ab62f96e5af17abd76bb9e9fde4fea2a6781 /camel
parent34de93822bf74d098746aab3bbc655b05582334b (diff)
downloadgsoc2013-evolution-5c3eeb95528778ea63cf8d4330b7ac70299d583f.tar.gz
gsoc2013-evolution-5c3eeb95528778ea63cf8d4330b7ac70299d583f.tar.zst
gsoc2013-evolution-5c3eeb95528778ea63cf8d4330b7ac70299d583f.zip
Coredump fix when IMAP get_folder with NULL dir_sep
svn path=/trunk/; revision=4535
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/imap/camel-imap-store.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index e920430c66..a70da9a00e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-04 Peter Williams <peterw@helixcode.com>
+
+ * providers/imap/camel-imap-store.c (get_folder): Prevent a coredump
+ when get_folder()ing from a store with dir_sep = NULL.
+
2000-08-04 Dan Winship <danw@helixcode.com>
* providers/pop3/camel-pop3-folder.c (pop3_set_message_flags):
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);