From e910ff15eb7c297d21f8ae7317e9ac80b5e8e375 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 28 Mar 2007 11:12:26 +0000 Subject: [PATCH] http Access: Avoid using an empty pointer (Oops). --- modules/access/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/http.c b/modules/access/http.c index a324bd7554..9a6d5e13ef 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -1081,7 +1081,7 @@ static int Request( access_t *p_access, int64_t i_tell ) char * psz_new_loc; /* Rework redirection that don't include server name */ - if( !strncmp( psz_new_loc, "/", 1 ) ) + if( !strncmp( p, "/", 1 ) ) { asprintf(&psz_new_loc, "http://%s:%d%s", p_sys->url.psz_host, p_sys->url.i_port, p); -- 2.39.2