commit | 2fa39abf815de25e11153b29e1b45f07c5ceb1f5 | [log] [tgz] |
---|---|---|
author | Will San Filippo <william.sanfilippo@juul.com> | Thu Aug 26 15:08:03 2021 -0700 |
committer | wes3 <william.sanfilippo@juul.com> | Fri Aug 27 09:10:36 2021 -0700 |
tree | e8d893b6dcc99b060d3eb8032dd4adc8f495767c | |
parent | 1a1c91635088d4f4f9f2bb35c728e4a5e6a2d819 [diff] |
encoding/base64: Remove unused code in hex_format The variable dst_len was being decremented but not used.
diff --git a/encoding/base64/src/hex.c b/encoding/base64/src/hex.c index 4c91acf..9f418fd 100644 --- a/encoding/base64/src/hex.c +++ b/encoding/base64/src/hex.c
@@ -49,7 +49,6 @@ tgt[0] = hex_bytes[(src[i] >> 4) & 0xf]; tgt[1] = hex_bytes[src[i] & 0xf]; tgt += 2; - dst_len -= 2; } *tgt = '\0'; return dst;