Skip to content

Commit

Permalink
lib-lda: Don't assert-crash if home directory isn't set.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jun 14, 2016
1 parent 318974e commit 4a5eb0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-lda/duplicate.c
Expand Up @@ -343,7 +343,8 @@ struct duplicate_context *duplicate_init(struct mail_user *user)
}

ctx = i_new(struct duplicate_context, 1);
ctx->path = i_strconcat(home, "/"DUPLICATE_FNAME, NULL);
ctx->path = home == NULL ? NULL :
i_strconcat(home, "/"DUPLICATE_FNAME, NULL);
ctx->dotlock_set = default_duplicate_dotlock_set;

mail_set = mail_user_set_get_storage_set(user);
Expand Down

0 comments on commit 4a5eb0c

Please sign in to comment.