summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-21 05:21:18 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-21 05:21:45 +0200
commitb8061b665dacefc1a4ced296c0566a9ec0218f03 (patch)
tree0f4ba06f7eea162fd5552052f879dbdfb3669672 /common.c
parent807bdea2ea931a7668954bd2a300631f3a6587d4 (diff)
downloadxK-b8061b665dacefc1a4ced296c0566a9ec0218f03.tar.gz
xK-b8061b665dacefc1a4ced296c0566a9ec0218f03.tar.xz
xK-b8061b665dacefc1a4ced296c0566a9ec0218f03.zip
Silence spurious compiler warnings
Diffstat (limited to 'common.c')
-rw-r--r--common.c8
1 files 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));