diff options
author | Ralf S. Engelschall <rse@FreeBSD.org> | 2007-02-04 20:06:10 +0000 |
---|---|---|
committer | Ralf S. Engelschall <rse@FreeBSD.org> | 2007-02-04 20:06:10 +0000 |
commit | 0c9dffd3af29febd389b17e0559b43e48049885b (patch) | |
tree | 97d5b88460e9839ae80dec4cd05132095e0f8b0d /usr.bin/ctags | |
parent | f61555255428849378a84019c50437a51d31f5f8 (diff) | |
download | src-test-0c9dffd3af29febd389b17e0559b43e48049885b.tar.gz src-test-0c9dffd3af29febd389b17e0559b43e48049885b.zip |
Correct parser by using intended C equality ("==") instead of
assignment ("=") operator.
Notes
Notes:
svn path=/head/; revision=166502
Diffstat (limited to 'usr.bin/ctags')
-rw-r--r-- | usr.bin/ctags/fortran.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ctags/fortran.c b/usr.bin/ctags/fortran.c index ef6c45fee258b..3761615f10ebd 100644 --- a/usr.bin/ctags/fortran.c +++ b/usr.bin/ctags/fortran.c @@ -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 */ |