summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-22 13:13:10 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-22 13:13:10 +0000
commit923c10ecddac6baecf6db444cee68c380367592c (patch)
treec5f44d6077f55f73018c42da41823a9ec5d92738 /term.c
parent369129e10cecda27554b9987d819367bcfcf3353 (diff)
downloadmandoc-923c10ecddac6baecf6db444cee68c380367592c.tar.gz
mandoc-923c10ecddac6baecf6db444cee68c380367592c.tar.zst
mandoc-923c10ecddac6baecf6db444cee68c380367592c.zip
Lint fixes.VERSION_1_7_20
Version up.
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term.c b/term.c
index 4ab338d9..ef221086 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.82 2009/06/22 12:38:07 kristaps Exp $ */
+/* $Id: term.c,v 1.83 2009/06/22 13:13:10 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -413,7 +413,8 @@ term_nescape(struct termp *p, const char *word, size_t len)
size_t sz;
int i;
- if ((rhs = term_a2ascii(p->symtab, word, len, &sz)))
+ rhs = term_a2ascii(p->symtab, word, len, &sz);
+ if (rhs)
for (i = 0; i < (int)sz; i++)
term_encodea(p, rhs[i]);
}