[vlc-commits] access: rist: fix uninitialized variable warning

Sergio Ammirata git at videolan.org
Fri Dec 7 09:50:07 CET 2018


vlc | branch: master | Sergio Ammirata <sergio at ammirata.net> | Tue Nov 27 08:22:33 2018 -0500| [b1b18401024fce92712c8da58e8f81116b0a8008] | committer: Thomas Guillem

access: rist: fix uninitialized variable warning

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1b18401024fce92712c8da58e8f81116b0a8008
---

 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");



More information about the vlc-commits mailing list