aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-20 09:06:50 +0800
committerDan Winship <danw@src.gnome.org>2000-10-20 09:06:50 +0800
commit30a4e3537012eac91c08e2e949a5d363bce18a2d (patch)
tree63b2279d1317eadead9dbcdd0c62f6a20c410355 /camel/providers
parentbbc7b8866aea373f5b46cc7a5e6e7c74789d4c24 (diff)
downloadgsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.tar
gsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.tar.gz
gsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.tar.bz2
gsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.tar.lz
gsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.tar.xz
gsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.tar.zst
gsoc2013-evolution-30a4e3537012eac91c08e2e949a5d363bce18a2d.zip
Fix a bug with "INBOX" (or anything else with NIL hierarchy separator) as
* providers/imap/camel-imap-utils.c (imap_parse_list_response): Fix a bug with "INBOX" (or anything else with NIL hierarchy separator) as the namespace. svn path=/trunk/; revision=6065
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index 98c8d63dd2..e4d8bfeb02 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -97,7 +97,7 @@ imap_parse_list_response (const char *buf, const char *namespace, char **flags,
/* chop out the folder prefix */
if (*namespace && !strncmp (*folder, namespace, strlen (namespace))) {
f = *folder + strlen (namespace);
- if (!strncmp (f, *sep, strlen (*sep)))
+ if (*sep && !strncmp (f, *sep, strlen (*sep)))
f += strlen (*sep);
memmove (*folder, f, strlen (f) + 1);
}