Skip to content

Commit

Permalink
quota-count: Remove extra "quota-count failed:" from error_r
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and villesavolainen committed Mar 6, 2018
1 parent a5518a4 commit f478857
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/quota/quota-count.c
Expand Up @@ -194,9 +194,7 @@ int quota_count(struct quota_root *root, uint64_t *bytes_r, uint64_t *count_r,
if (ret < 0) {
const char *separator =
*error1 != '\0' && *error2 != '\0' ? " and " : "";
*error_r = t_strdup_printf(
"quota-count failed: %s%s%s",
error1, separator, error2);
*error_r = t_strconcat(error1, separator, error2, NULL);
}
root->recounting = FALSE;
return ret;
Expand Down

0 comments on commit f478857

Please sign in to comment.