Correct the arg count after parsing a line with an unescaped # that isn't

preceeded with whitespace.

MFC after: 3 weeks
This commit is contained in:
Brian Somers 2001-06-15 13:58:06 +00:00
parent 56fe60b131
commit 797c04a7a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78275

View File

@ -313,10 +313,9 @@ MakeArgs(char *script, char **pvect, int maxargs, int flags)
script = findblank(script, flags);
if (script == NULL)
return -1;
else if (!(flags & PARSE_NOHASH) && *script == '#') {
else if (!(flags & PARSE_NOHASH) && *script == '#')
*script = '\0';
nargs--;
} else if (*script)
else if (*script)
*script++ = '\0';
}
}