]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg: c_acc doesn't need to be initialized
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 8 Feb 2019 01:32:15 +0000 (02:32 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 8 Feb 2019 01:32:15 +0000 (02:32 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/encoding.c

index bf5fd54ce31d8305e0401e13fcebdd1847fb254c..af2fc823897dbf123b9d11ca14ae5a0d3e20b70b 100644 (file)
@@ -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)