aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-10-22 16:18:17 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-10-22 16:18:17 +0000
commitf98f97bb1e4af1b64bb3f2a996f260dc7cf44be1 (patch)
tree876a699c0e62fcd1d609be7691366a48f5c66007 /usr.bin/vgrind
parentdf4ddde70becdce6c222f4a7145e0c858fc17c6a (diff)
Notes
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 bd153a8c4fec..da301eeecef0 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);