Module Name: src
Committed By: mbalmer
Date: Sat Apr 2 07:58:31 UTC 2011
Modified Files:
src/usr.bin/make: util.c
Log Message:
Declare variable only once. Fixes PR 44795.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/make/util.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/util.c
diff -u src/usr.bin/make/util.c:1.50 src/usr.bin/make/util.c:1.51
--- src/usr.bin/make/util.c:1.50 Thu Jun 3 15:40:16 2010
+++ src/usr.bin/make/util.c Sat Apr 2 07:58:30 2011
@@ -1,15 +1,15 @@
-/* $NetBSD: util.c,v 1.50 2010/06/03 15:40:16 sjg Exp $ */
+/* $NetBSD: util.c,v 1.51 2011/04/02 07:58:30 mbalmer Exp $ */
/*
* Missing stuff from OS's
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: util.c,v 1.50 2010/06/03 15:40:16 sjg Exp $";
+static char rcsid[] = "$NetBSD: util.c,v 1.51 2011/04/02 07:58:30 mbalmer Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: util.c,v 1.50 2010/06/03 15:40:16 sjg Exp $");
+__RCSID("$NetBSD: util.c,v 1.51 2011/04/02 07:58:30 mbalmer Exp $");
#endif
#endif
@@ -49,7 +49,7 @@
char *p, *q;
for (i = 0; (q = environ[i]); i++) {
- char *p = strchr(q, '=');
+ p = strchr(q, '=');
if (p == NULL)
continue;
if (strncmp(name, q, len = p - q) == 0) {