From: Stephan Bosch Date: Thu, 20 Oct 2016 13:54:40 +0000 (+0200) Subject: lib-storage: Fixed a boolean expression. X-Git-Tag: 2.2.27~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d80bf6c524b066eea17619bec2ee8fa983d50ebe;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Fixed a boolean expression. Problem found with clang -Wstrict-bool. --- diff --git a/src/lib-storage/mail-storage.c b/src/lib-storage/mail-storage.c index c145e281e5..e7e790f8ea 100644 --- a/src/lib-storage/mail-storage.c +++ b/src/lib-storage/mail-storage.c @@ -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) {