Skip to content

Commit f2d5122

Browse files
committed
Fix CID 1596066: unchecked return.
1 parent d2bf6c2 commit f2d5122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/crypto/mem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ inline std::string
172172
bin_to_hex(const uint8_t *data, size_t len, HexFormat format = HexFormat::Uppercase)
173173
{
174174
std::string res(len * 2 + 1, '\0');
175-
hex_encode(data, len, &res.front(), res.size(), format);
175+
(void) hex_encode(data, len, &res.front(), res.size(), format);
176176
res.resize(len * 2);
177177
return res;
178178
}

0 commit comments

Comments
 (0)