From 97b72817a51cfa9d80c189c80d56e92e4f4e72b7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 2 Nov 2004 20:30:22 +0000 Subject: Don't bother getting the folder delim if the name is "" since we don't 2004-11-02 Jeffrey Stedfast * providers/imap4/camel-imap4-store.c (imap4_folder_utf7_name): Don't bother getting the folder delim if the name is "" since we don't need it in that case. * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): add an assert that s->namespaces is non-NULL. svn path=/trunk/; revision=27804 --- camel/providers/imap4/camel-imap4-utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'camel/providers/imap4/camel-imap4-utils.c') diff --git a/camel/providers/imap4/camel-imap4-utils.c b/camel/providers/imap4/camel-imap4-utils.c index c95438e95a..29ffb945fe 100644 --- a/camel/providers/imap4/camel-imap4-utils.c +++ b/camel/providers/imap4/camel-imap4-utils.c @@ -144,8 +144,7 @@ camel_imap4_get_path_delim (CamelIMAP4StoreSummary *s, const char *full_name) size_t len; char *top; - if (s->namespaces == NULL) - return '/'; + g_return_val_if_fail (s->namespaces != NULL, '/'); if ((slash = strchr (full_name, '/'))) len = (slash - full_name); -- cgit