diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-08 21:29:04 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-08 21:29:04 +0000 |
commit | 71de896c122ac6d0e909897e08d08d69a6c0d20f (patch) | |
tree | f782f046a7573d7e8564dbfc9e8024f593ba2d4c /usr.bin/make | |
parent | 29006c0306b69391a22a26518bb1607fd0e2b6cc (diff) | |
download | FreeBSD-src-71de896c122ac6d0e909897e08d08d69a6c0d20f.zip FreeBSD-src-71de896c122ac6d0e909897e08d08d69a6c0d20f.tar.gz |
Reference the correct local variable in all parts of a for loop, so we
operate on the correct data (properly).
Tracked down by: Dan Nelson
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 3002ef0..9e3895b 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -811,7 +811,7 @@ main(argc, argv) path1 = vpath; do { /* skip to end of directory */ - for (cp1 = path1; *cp != ':' && *cp != '\0'; cp++) + for (cp1 = path1; *cp1 != ':' && *cp1 != '\0'; cp1++) continue; /* Save terminator character so know when to stop */ savec = *cp1; |