aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/wipeable_string.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-27 08:43:56 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-12 09:26:09 +0000
commit07ec748c8245b42de0ec9964b2f0062c0034f2f8 (patch)
tree7e7cd85956f83c779f63afc2b6ecddbefbb30fd1 /contrib/epee/src/wipeable_string.cpp
parentMerge pull request #4223 (diff)
downloadmonero-07ec748c8245b42de0ec9964b2f0062c0034f2f8.tar.xz
wipeable_string: add hex_to_pod function
Diffstat (limited to '')
-rw-r--r--contrib/epee/src/wipeable_string.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/src/wipeable_string.cpp b/contrib/epee/src/wipeable_string.cpp
index 7c9722765..69f92e106 100644
--- a/contrib/epee/src/wipeable_string.cpp
+++ b/contrib/epee/src/wipeable_string.cpp
@@ -32,6 +32,8 @@
#include "misc_log_ex.h"
#include "wipeable_string.h"
+static constexpr const char hex[] = u8"0123456789abcdef";
+
namespace
{
int atolower(int c)
@@ -197,7 +199,6 @@ boost::optional<epee::wipeable_string> wipeable_string::parse_hexstr() const
const size_t len = size();
const char *d = data();
res->grow(0, len / 2);
- static constexpr const char hex[] = u8"0123456789abcdef";
for (size_t i = 0; i < len; i += 2)
{
char c = atolower(d[i]);