aboutsummaryrefslogtreecommitdiff
path: root/tool/digest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tool/digest.cc')
-rw-r--r--tool/digest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/digest.cc b/tool/digest.cc
index d810928..e66f013 100644
--- a/tool/digest.cc
+++ b/tool/digest.cc
@@ -115,7 +115,7 @@ static bool SumFile(std::string *out_hex, const EVP_MD *md,
}
static const size_t kBufSize = 8192;
- std::unique_ptr<uint8_t[]> buf(new uint8_t[kBufSize]);
+ auto buf = std::make_unique<uint8_t[]>(kBufSize);
bssl::ScopedEVP_MD_CTX ctx;
if (!EVP_DigestInit_ex(ctx.get(), md, NULL)) {