X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/blobdiff_plain/4710a9f88a22ea44ad4ec216e6c379783e1079e3..89ec024f927084cf53df08c246406a2551b3ad5c:/http.c diff --git a/http.c b/http.c index ab798d9..c7e553c 100644 --- a/http.c +++ b/http.c @@ -27,17 +27,15 @@ int open_http(char *url) { int fd; struct sockaddr_in server; - static struct dvb_host *dvbhost = NULL; + struct dvb_host *dvbhost = NULL; char c, buffer[BUFFSIZE], *pos; int lines = 0; if(!is_http(url)) return -1; - if (!dvbhost) { - dvbhost = parse(&(url[7]), "80"); - dvbhost->socktype = SOCK_STREAM; - } + dvbhost = parse(&(url[7]), "80"); + dvbhost->socktype = SOCK_STREAM; if (resolve(dvbhost, &server) < 0) { return -1;