diff options
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index b6583b511b..fb47561d0c 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -649,7 +649,7 @@ imap_connect_online (CamelService *service, CamelException *ex) /* canonicalize the namespace to end with dir_sep */ len = strlen (store->namespace); - if (store->namespace[len - 1] != store->dir_sep) { + if (len && store->namespace[len - 1] != store->dir_sep) { gchar *tmp; tmp = g_strdup_printf ("%s%c", store->namespace, store->dir_sep); |