(net_http.c) Silence warning

This commit is contained in:
twinaphex 2015-01-24 01:32:27 +01:00
parent 07684fff1c
commit e1395abe69

View File

@ -187,7 +187,7 @@ http_t *net_http_new(const char * url)
{ {
bool error; bool error;
char *domain = NULL, *location = NULL; char *domain = NULL, *location = NULL;
int port, fd = -1; int port = 0, fd = -1;
http_t *state = NULL; http_t *state = NULL;
char *urlcopy =(char*)malloc(strlen(url)+1); char *urlcopy =(char*)malloc(strlen(url)+1);