aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-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