changeset 21164:78ec76a97aa4

lib-storage: Fixed a boolean expression. Problem found with clang -Wstrict-bool.
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Thu, 20 Oct 2016 15:54:40 +0200
parents a3cb1f46a9ab
children e912e661fa6f
files src/lib-storage/mail-storage.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c	Mon Oct 17 09:13:21 2016 -0400
+++ b/src/lib-storage/mail-storage.c	Thu Oct 20 15:54:40 2016 +0200
@@ -282,7 +282,8 @@
 		return FALSE;
 
 	if ((storage->class_flags & MAIL_STORAGE_CLASS_FLAG_UNIQUE_ROOT) != 0 &&
-	    strcmp(storage->unique_root_dir, set->root_dir ? set->root_dir : "") != 0)
+	    strcmp(storage->unique_root_dir,
+	    	(set->root_dir != NULL ? set->root_dir : "")) != 0)
 		return FALSE;
 
 	if (strcmp(storage->name, "shared") == 0) {