changeset 8318:e19fd6f3d18c HEAD

Maildir: Fixed using in-memory indexes when some required directory was missing.
author Timo Sirainen <tss@iki.fi>
date Tue, 07 Jul 2009 21:51:37 -0400
parents c4b32e6b9fb0
children 07a377d58ccf
files src/lib-storage/index/maildir/maildir-util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-util.c	Tue Jul 07 16:02:51 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-util.c	Tue Jul 07 21:51:37 2009 -0400
@@ -108,7 +108,7 @@
 
 	for (i = 0; i < N_ELEMENTS(dirs); i++) {
 		path = dirs[i];
-		if (path == NULL || stat(path, &st) == 0)
+		if (*path == '\0' || stat(path, &st) == 0)
 			continue;
 		if (errno != ENOENT) {
 			mail_storage_set_critical(box->storage,