summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/term.c b/term.c
index b1653267..39bb8d8a 100644
--- a/term.c
+++ b/term.c
@@ -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]);
}