diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-07-23 22:31:22 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-07-23 22:31:22 +0000 |
commit | 503f0c1c94b89bbcd1cbc452d884803acc40cabd (patch) | |
tree | 88d085c2bd4389f3ac14d6f249c25745dad76483 /usr.sbin | |
parent | 7216ee33cdd4807fed8c50f9180e33bce41c8c9d (diff) |
fix a variable shadowing problem
PR5549, From: veins@evilkittens.org
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_mime_magic.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |