]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fixed a boolean expression.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 20 Oct 2016 13:54:40 +0000 (15:54 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 18 Nov 2016 12:19:40 +0000 (14:19 +0200)
Problem found with clang -Wstrict-bool.

src/lib-storage/mail-storage.c

index c145e281e5118f6bb04a7c632aeff6a852a9711e..e7e790f8ea5b8ba98599c28d39dd8ee74500e1da 100644 (file)
@@ -282,7 +282,8 @@ mail_storage_match_class(struct mail_storage *storage,
                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) {