Correct parser by using intended C equality ("==") instead of

assignment ("=") operator.
This commit is contained in:
rse 2007-02-04 20:06:10 +00:00
parent 768e33c7bc
commit eccd2b26c0

View File

@ -124,7 +124,7 @@ PF_funcs()
continue;
for (cp = lbp + 1; *cp && intoken(*cp); ++cp)
continue;
if ((cp = lbp + 1))
if (cp == lbp + 1)
continue;
*cp = EOS;
(void)strlcpy(tok, lbp, sizeof(tok)); /* possible trunc */