From 6274c103b48e0e9130b0518047750c143ff0a346 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Thu, 16 Sep 2021 17:43:46 +0200 Subject: [PATCH] Fixed compiler warning --- src/espstrutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espstrutils.cpp b/src/espstrutils.cpp index f4b2efd..3ad1d0b 100644 --- a/src/espstrutils.cpp +++ b/src/espstrutils.cpp @@ -66,7 +66,7 @@ std::string toHexString(std::basic_string_view buf) std::string hex(buf.size() * 2 + 1, {}); assert(hex.size() == buf.size() * 2 + 1); - const char *ptr = sodium_bin2hex(hex.data(), hex.size(), buf.data(), buf.size()); + sodium_bin2hex(hex.data(), hex.size(), buf.data(), buf.size()); hex.resize(hex.size() - 1); assert(hex.size() == buf.size() * 2);