diff --git a/net_http.c b/net_http.c index f8f3888fb7..7d2bd3d50e 100644 --- a/net_http.c +++ b/net_http.c @@ -187,7 +187,7 @@ http_t *net_http_new(const char * url) { bool error; char *domain = NULL, *location = NULL; - int port, fd = -1; + int port = 0, fd = -1; http_t *state = NULL; char *urlcopy =(char*)malloc(strlen(url)+1);