From 789580a2a2366243d622766fdadd094931ca6596 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 8 Jun 2017 12:54:58 +0000 Subject: make the internal a2roffsu() interface more powerful by returning a pointer to the end of the parsed data, making it easier to parse subsequent bytes --- term_tab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term_tab.c') diff --git a/term_tab.c b/term_tab.c index 3e6fa5c1..88c47c18 100644 --- a/term_tab.c +++ b/term_tab.c @@ -68,7 +68,7 @@ term_tab_set(const struct termp *p, const char *arg) arg++; } else add = 0; - if (a2roffsu(arg, &su, SCALE_EM) == 0) + if (a2roffsu(arg, &su, SCALE_EM) == NULL) return; /* Select the list, and extend it if it is full. */ -- cgit v1.2.3-56-ge451