aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-04-13 23:49:46 +0000
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-04-13 23:49:46 +0000
commit434afc5ac1ccf97394c38eaa3b4f5de176fbdce0 (patch)
tree274e7acfc42ca158f5f94d605332e479caec0a07 /src
parent390ebde0f862e5309d5fc7193c6d5b6dfd280581 (diff)
downloadblogc-434afc5ac1ccf97394c38eaa3b4f5de176fbdce0.tar.gz
blogc-434afc5ac1ccf97394c38eaa3b4f5de176fbdce0.tar.bz2
blogc-434afc5ac1ccf97394c38eaa3b4f5de176fbdce0.zip
runserver: initialize integer vars
Diffstat (limited to 'src')
-rw-r--r--src/blogc-runserver/httpd.c4
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);