summaryrefslogtreecommitdiffstats
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-10-22 16:18:17 +0000
committerjoerg <joerg@FreeBSD.org>1996-10-22 16:18:17 +0000
commit2d7b0aca1c8b4a9fb6358ab448d7b578746afdad (patch)
tree876a699c0e62fcd1d609be7691366a48f5c66007 /usr.bin/vgrind
parent37e1a46671fe0e52f3bbafcae106fa2b66bbe921 (diff)
downloadFreeBSD-src-2d7b0aca1c8b4a9fb6358ab448d7b578746afdad.zip
FreeBSD-src-2d7b0aca1c8b4a9fb6358ab448d7b578746afdad.tar.gz
The neverending story... vgrind.
For definitions without an "nc" entry, some parts have now been mis-detected as `non-comment'. Avoid this by not converting the noregexp in case the "nc" capability has not been found. I begin to wonder why things like missing "ab"/"ae"'s do work at all... Detected by: nate
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r--usr.bin/vgrind/vfontedpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vgrind/vfontedpr.c b/usr.bin/vgrind/vfontedpr.c
index bd153a8..da301ee 100644
--- a/usr.bin/vgrind/vfontedpr.c
+++ b/usr.bin/vgrind/vfontedpr.c
@@ -275,8 +275,8 @@ main(argc, argv)
l_chrbeg = convexp(cp);
cgetustr(defs, "le", &cp);
l_chrend = convexp(cp);
- cgetustr(defs, "nc", &cp);
- l_nocom = convexp(cp);
+ if (cgetustr(defs, "nc", &cp) >= 0)
+ l_nocom = convexp(cp);
l_escape = '\\';
l_onecase = (cgetcap(defs, "oc", ':') != NULL);
l_toplex = (cgetcap(defs, "tl", ':') != NULL);
OpenPOWER on IntegriCloud