summaryrefslogtreecommitdiffstats
path: root/tbl_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_data.c')
-rw-r--r--tbl_data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tbl_data.c b/tbl_data.c
index 56b13c99..708a9ea6 100644
--- a/tbl_data.c
+++ b/tbl_data.c
@@ -52,6 +52,9 @@ data(struct tbl *tbl, struct tbl_span *dp,
dat = mandoc_calloc(1, sizeof(struct tbl_dat));
dat->layout = cp;
+ if (NULL == dat->layout)
+ TBL_MSG(tbl, MANDOCERR_TBLEXTRADAT, ln, *pos);
+
if (dp->last) {
dp->last->next = dat;
dp->last = dat;