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
This commit is contained in:
Juli Mallett 2002-10-08 21:29:04 +00:00
parent a2c4ff970b
commit 7e75296d52

View File

@ -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;