From 12b62a4b96a3f86e5d82875a50920bf5568ba183 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 14 Dec 2003 12:19:25 +0000 Subject: avoid segfault CVS patchset: 5909 CVS date: 2003/12/14 12:19:25 --- src/input/input_http.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/input/input_http.c b/src/input/input_http.c index 2c34650f7..0d5de1ef9 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -19,7 +19,7 @@ * * input plugin for http network streams * - * $Id: input_http.c,v 1.79 2003/12/13 11:52:56 f1rmb Exp $ + * $Id: input_http.c,v 1.80 2003/12/14 12:19:25 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -897,14 +897,13 @@ static void *init_class (xine_t *xine, void *data) { char *proxy_env; if((proxy_env = getenv("http_proxy")) && (strlen(proxy_env))) { - int proxy_port = DEFAULT_HTTP_PORT; + int proxy_port = DEFAULT_HTTP_PORT; char *http_proxy = xine_xmalloc(strlen(proxy_env) + 1); - char *p; + char *p; if(!strncmp(proxy_env, "http://", 7)) proxy_env += 7; - memset(&http_proxy, 0, sizeof(http_proxy)); sprintf(http_proxy, "%s", proxy_env); if((p = strrchr(&http_proxy[0], ':')) && (strlen(p) > 1)) { -- cgit v1.2.3