X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/d6eb62b54864648f3846c3e4cb09464f5ecbc0fd..472358268a3a5ae7eff4dbde1e48f925e8c7d82b:/tbl.c?ds=inline diff --git a/tbl.c b/tbl.c index 6ef2f735..b3d651be 100644 --- a/tbl.c +++ b/tbl.c @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.25 2011/04/04 23:04:38 kristaps Exp $ */ +/* $Id: tbl.c,v 1.26 2011/07/25 15:37:00 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -154,8 +154,12 @@ tbl_span(struct tbl_node *tbl) } void -tbl_end(struct tbl_node *tbl) +tbl_end(struct tbl_node **tblp) { + struct tbl_node *tbl; + + tbl = *tblp; + *tblp = NULL; if (NULL == tbl->first_span || NULL == tbl->first_span->first) mandoc_msg(MANDOCERR_TBLNODATA, tbl->parse,