From 503f0c1c94b89bbcd1cbc452d884803acc40cabd Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 23 Jul 2007 22:31:22 +0000 Subject: fix a variable shadowing problem PR5549, From: veins@evilkittens.org --- usr.sbin/httpd/src/modules/standard/mod_mime_magic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/httpd/src/modules/standard/mod_mime_magic.c b/usr.sbin/httpd/src/modules/standard/mod_mime_magic.c index bb1ce2b1921..8121e59aafa 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_mime_magic.c +++ b/usr.sbin/httpd/src/modules/standard/mod_mime_magic.c @@ -933,11 +933,11 @@ static int apprentice(server_rec *s, pool *p) /* parse it */ for (lineno = 1; fgets(line, sizeof(line), f) != NULL; lineno++) { int ws_offset; - char *p; + char *pl; /* delete newline */ - if ((p = strchr(line, '\n')) != NULL) - *p = '\0'; + if ((pl = strchr(line, '\n')) != NULL) + *pl = '\0'; /* skip leading whitespace */ ws_offset = 0; -- cgit v1.2.3