aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/encoding.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-08 02:32:15 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-08 02:32:15 +0100
commit99f8e64390e14ac195b9f4569f17223359e1b8f0 (patch)
treee718acf9eae37cdd43d33c151464f305b39d3ad9 /src/tools/encoding.c
parenttools: fight compiler slightly harder (diff)
downloadwireguard-monolithic-historical-99f8e64390e14ac195b9f4569f17223359e1b8f0.tar.xz
wireguard-monolithic-historical-99f8e64390e14ac195b9f4569f17223359e1b8f0.zip
tools: c_acc doesn't need to be initialized
Diffstat (limited to 'src/tools/encoding.c')
-rw-r--r--src/tools/encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/encoding.c b/src/tools/encoding.c
index bf5fd54..af2fc82 100644
--- a/src/tools/encoding.c
+++ b/src/tools/encoding.c
@@ -84,7 +84,7 @@ void key_to_hex(char hex[static WG_KEY_LEN_HEX], const uint8_t key[static WG_KEY
bool key_from_hex(uint8_t key[static WG_KEY_LEN], const char *hex)
{
- uint8_t c, c_acc = 0, c_alpha0, c_alpha, c_num0, c_num, c_val;
+ uint8_t c, c_acc, c_alpha0, c_alpha, c_num0, c_num, c_val;
volatile uint8_t ret = 0;
if (strlen(hex) != WG_KEY_LEN_HEX - 1)