From 434afc5ac1ccf97394c38eaa3b4f5de176fbdce0 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 13 Apr 2017 23:49:46 +0000 Subject: runserver: initialize integer vars --- src/blogc-runserver/httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c index f3b2e2b..ca16394 100644 --- a/src/blogc-runserver/httpd.c +++ b/src/blogc-runserver/httpd.c @@ -275,10 +275,10 @@ br_httpd_run(const char *host, const char *port, const char *docroot, int rv = 0; struct addrinfo *rp; - int server_socket; + int server_socket = 0; char *final_host = NULL; - u_int16_t final_port; + u_int16_t final_port = 0; for (rp = result; rp != NULL; rp = rp->ai_next) { final_host = br_httpd_get_ip(rp->ai_family, rp->ai_addr); -- cgit v1.2.3-18-g5258