aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-vee-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-vee-store.c')
-rw-r--r--camel/camel-vee-store.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/camel/camel-vee-store.c b/camel/camel-vee-store.c
index e909671e36..6fe9e31339 100644
--- a/camel/camel-vee-store.c
+++ b/camel/camel-vee-store.c
@@ -167,14 +167,13 @@ static void
build_info(char *name, CamelVeeFolder *folder, struct _build_info *data)
{
CamelFolderInfo *info;
- int toplen, namelen;
-
- namelen = strlen(name);
- toplen = strlen(data->top);
/* check we have to include this one */
if (data->top) {
if (data->flags & CAMEL_STORE_FOLDER_INFO_RECURSIVE) {
+ int namelen = strlen(name);
+ int toplen = strlen(data->top);
+
if (!((namelen == toplen &&
strcmp(name, data->top) == 0)
|| ((namelen > toplen)