diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-14 18:18:05 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-14 18:18:05 +0000 |
commit | b53f13bc3058beab88ad98e78c0ce6c0ff5be2a0 (patch) | |
tree | 1f9f03733b97bd82d534f6de55c3b9f012e1b345 /tbl_term.c | |
parent | 31fb7c5a7837faf76121c7479b8648c00d11bc51 (diff) | |
download | mandoc-b53f13bc3058beab88ad98e78c0ce6c0ff5be2a0.tar.gz |
even if a table has zero columns, do not segfault in the formatter;
bug reported by bentley@
Diffstat (limited to 'tbl_term.c')
-rw-r--r-- | tbl_term.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -107,7 +107,7 @@ term_tbl(struct termp *tp, const struct tbl_span *sp) /* Vertical frame at the start of each row. */ if ((TBL_OPT_BOX | TBL_OPT_DBOX) & sp->opts->opts || - sp->head->vert) + (sp->head != NULL && sp->head->vert)) term_word(tp, TBL_SPAN_HORIZ == sp->pos || TBL_SPAN_DHORIZ == sp->pos ? "+" : "|"); |