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);