From b1b18401024fce92712c8da58e8f81116b0a8008 Mon Sep 17 00:00:00 2001 From: Sergio Ammirata Date: Tue, 27 Nov 2018 08:22:33 -0500 Subject: [PATCH] access: rist: fix uninitialized variable warning Signed-off-by: Thomas Guillem --- modules/access/rist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/rist.h b/modules/access/rist.h index 574bc40cd9..75ade277d2 100644 --- a/modules/access/rist.h +++ b/modules/access/rist.h @@ -140,7 +140,7 @@ static inline void populate_cname(int fd, char *identifier) char hostname[MAX_CNAME]; struct sockaddr_storage peer_sockaddr; int name_length = 0; - socklen_t peer_socklen; + socklen_t peer_socklen = 0; int ret_hostname = gethostname(hostname, MAX_CNAME); if (ret_hostname == -1) snprintf(hostname, MAX_CNAME, "UnknownHost"); -- 2.11.4.GIT