Fix some warnigns in net_http.c

This commit is contained in:
twinaphex 2015-01-23 08:03:21 +01:00
parent 7e5060e1f1
commit 61776c5175

View File

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