aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorJoe Shaw <joe@helixcode.com>2000-10-11 05:31:49 +0800
committerJoe Shaw <joeshaw@src.gnome.org>2000-10-11 05:31:49 +0800
commit6d9a23e4797668f979605cad83afde3a46c460b5 (patch)
treefdff250ba8d7fc1e131876f5c1ae5845d17cf56d /camel/providers/imap
parent6c03655cb7aad5ab8a0b766ba9f74b3108988658 (diff)
downloadgsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.tar
gsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.tar.gz
gsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.tar.bz2
gsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.tar.lz
gsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.tar.xz
gsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.tar.zst
gsoc2013-evolution-6d9a23e4797668f979605cad83afde3a46c460b5.zip
Check before deferencing the sep pointer.
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. svn path=/trunk/; revision=5822
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-store.c3
1 files changed, 2 insertions, 1 deletions
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