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:
parent
a2c4ff970b
commit
7e75296d52
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user