summaryrefslogtreecommitdiffstats
path: root/term_tab.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-08 12:54:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-08 12:54:58 +0000
commitad29d8dbe925e8f0d680007ebf3c95aec8351f84 (patch)
treee1d347a6e1580d73cf7fb7e978c1b9103e0acbac /term_tab.c
parentd44fff44885ccb8313515cbafde42b061f7d4c45 (diff)
downloadmandoc-ad29d8dbe925e8f0d680007ebf3c95aec8351f84.tar.gz
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
Diffstat (limited to 'term_tab.c')
-rw-r--r--term_tab.c2
1 files changed, 1 insertions, 1 deletions
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. */