diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-04-13 23:49:46 +0000 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-04-13 23:49:46 +0000 |
commit | 434afc5ac1ccf97394c38eaa3b4f5de176fbdce0 (patch) | |
tree | 274e7acfc42ca158f5f94d605332e479caec0a07 /src/blogc-runserver/httpd.c | |
parent | 390ebde0f862e5309d5fc7193c6d5b6dfd280581 (diff) | |
download | blogc-434afc5ac1ccf97394c38eaa3b4f5de176fbdce0.tar.gz blogc-434afc5ac1ccf97394c38eaa3b4f5de176fbdce0.tar.bz2 blogc-434afc5ac1ccf97394c38eaa3b4f5de176fbdce0.zip |
runserver: initialize integer vars
Diffstat (limited to 'src/blogc-runserver/httpd.c')
-rw-r--r-- | src/blogc-runserver/httpd.c | 4 |
1 files 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); |