From 3fd4542ce246116b91ade0376639b5c145c3d3a9 Mon Sep 17 00:00:00 2001 From: GDR! Date: Tue, 7 Jul 2015 19:08:46 +0200 Subject: CID 122514 (#6 of 6): Uninitialized scalar variable (UNINIT)10. uninit_use_in_call: Using uninitialized value friendnumber when calling send_tunnel_request_packet. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.c') diff --git a/client.c b/client.c index ace40bc..cf26a90 100644 --- a/client.c +++ b/client.c @@ -228,7 +228,7 @@ int do_client_loop(char *tox_id_str) { unsigned char tox_packet_buf[PROTOCOL_MAX_PACKET_SIZE]; unsigned char tox_id[TOX_ADDRESS_SIZE]; - uint32_t friendnumber; + uint32_t friendnumber = 0; struct timeval tv; fd_set fds; static time_t invitation_sent_time = 0; -- cgit v1.2.3