]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-count: Remove extra "quota-count failed:" from error_r
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Thu, 14 Dec 2017 10:47:00 +0000 (12:47 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 1 Feb 2018 10:25:46 +0000 (12:25 +0200)
src/plugins/quota/quota-count.c

index 37786843236bc2833ce43ef1ca6653c7da29a24e..87bbdc73154a41f870646532d539b0880c6c0884 100644 (file)
@@ -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;