From b8061b665dacefc1a4ced296c0566a9ec0218f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Wed, 21 Sep 2022 05:21:18 +0200 Subject: [PATCH] Silence spurious compiler warnings --- common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common.c b/common.c index 6f99509..ac83776 100644 --- a/common.c +++ b/common.c @@ -329,7 +329,7 @@ struct socks_connector SOCKS_DATA_CB (socks_4a_finish) { - uint8_t null, status; + uint8_t null = 0, status = 0; hard_assert (msg_unpacker_u8 (unpacker, &null)); hard_assert (msg_unpacker_u8 (unpacker, &status)); @@ -432,7 +432,7 @@ SOCKS_DATA_CB (socks_5_request_domain) SOCKS_DATA_CB (socks_5_request_finish) { - uint8_t version, status, reserved, type; + uint8_t version = 0, status = 0, reserved = 0, type = 0; hard_assert (msg_unpacker_u8 (unpacker, &version)); hard_assert (msg_unpacker_u8 (unpacker, &status)); hard_assert (msg_unpacker_u8 (unpacker, &reserved)); @@ -509,7 +509,7 @@ socks_5_request_start (struct socks_connector *self) SOCKS_DATA_CB (socks_5_userpass_finish) { - uint8_t version, status; + uint8_t version = 0, status = 0; hard_assert (msg_unpacker_u8 (unpacker, &version)); hard_assert (msg_unpacker_u8 (unpacker, &status)); @@ -544,7 +544,7 @@ socks_5_userpass_start (struct socks_connector *self) SOCKS_DATA_CB (socks_5_auth_finish) { - uint8_t version, method; + uint8_t version = 0, method = 0; hard_assert (msg_unpacker_u8 (unpacker, &version)); hard_assert (msg_unpacker_u8 (unpacker, &method));