From: Jason A. Donenfeld Date: Fri, 8 Feb 2019 01:32:15 +0000 (+0100) Subject: wg: c_acc doesn't need to be initialized X-Git-Tag: v1.0.20191226~45 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=86e0c306b8eafcea33e58013ef478ab207d59f00;p=thirdparty%2Fwireguard-tools.git wg: c_acc doesn't need to be initialized Signed-off-by: Jason A. Donenfeld --- diff --git a/src/encoding.c b/src/encoding.c index bf5fd54..af2fc82 100644 --- a/src/encoding.c +++ b/src/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)