Skip to content

Commit

Permalink
lib-storage: Fixed a boolean expression.
Browse files Browse the repository at this point in the history
Problem found with clang -Wstrict-bool.
  • Loading branch information
stephanbosch authored and GitLab committed Oct 20, 2016
1 parent 59cd098 commit 1210c14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-storage/mail-storage.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 1210c14

Please sign in to comment.