aboutsummaryrefslogtreecommitdiff
path: root/src/util/strencodings.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-11-09 20:17:48 +0100
committerMacroFake <falke.marco@gmail.com>2022-04-27 19:18:20 +0200
commitfabdf81983e2542d60542b80fb94ccb1acdd204a (patch)
treef57cf4d2d0ea09976e8ce0256039740ba0f2ad1a /src/util/strencodings.cpp
parentf0a834e2f10a0aa60c7cc76e9f3eb090168a32e5 (diff)
downloadbitcoin-fabdf81983e2542d60542b80fb94ccb1acdd204a.tar.xz
test: Add test for embedded null in hex string
Also, fix style in the corresponding function. The style change can be reviewed with "--word-diff-regex=."
Diffstat (limited to 'src/util/strencodings.cpp')
-rw-r--r--src/util/strencodings.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp
index 35f62f0422..3556c0f4b0 100644
--- a/src/util/strencodings.cpp
+++ b/src/util/strencodings.cpp
@@ -78,7 +78,6 @@ bool IsHexNumber(std::string_view str)
std::vector<unsigned char> ParseHex(std::string_view str)
{
- // convert hex dump to vector
std::vector<unsigned char> vch;
auto it = str.begin();
while (it != str.end() && it + 1 != str.end()) {