From f98f97bb1e4af1b64bb3f2a996f260dc7cf44be1 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 22 Oct 1996 16:18:17 +0000 Subject: [PATCH] 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 --- usr.bin/vgrind/vfontedpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/vgrind/vfontedpr.c b/usr.bin/vgrind/vfontedpr.c index bd153a8c4fe..da301eeecef 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);