Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com>2022-01-18 17:30:11 +0300
committerArtjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com>2022-01-18 17:30:11 +0300
commitc65aededf27877c5658473dbfa536b5cb1f70472 (patch)
treeee0ab5f6a87389f90473f2cf1c9e8c93d99444af /tests
parent3e3e454f0c13dd3485584ed12da750ae85f3ff3e (diff)
.......... [DEV-2062] fixed 'buf' may be used uninitialized in this function [-Wmaybe-uninitialized] warning
Diffstat (limited to 'tests')
-rw-r--r--tests/libs/zbxcomms/zbx_tcp_check_allowed_peers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libs/zbxcomms/zbx_tcp_check_allowed_peers.c b/tests/libs/zbxcomms/zbx_tcp_check_allowed_peers.c
index 83684cf51cf..9496bf3d127 100644
--- a/tests/libs/zbxcomms/zbx_tcp_check_allowed_peers.c
+++ b/tests/libs/zbxcomms/zbx_tcp_check_allowed_peers.c
@@ -41,6 +41,7 @@ static void mock_accept(zbx_socket_t *s)
break;
default:
fail_msg("Unexpected family");
+ return;
}
if (1 != inet_pton(s->peer_info.ss_family, (peer = zbx_mock_get_parameter_string("in.peer")), buf))