=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.347 retrieving revision 1.349 diff -u -p -r1.347 -r1.349 --- mandoc/roff.c 2018/12/13 03:40:13 1.347 +++ mandoc/roff.c 2018/12/13 11:55:47 1.349 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.347 2018/12/13 03:40:13 schwarze Exp $ */ +/* $Id: roff.c,v 1.349 2018/12/13 11:55:47 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -32,6 +32,7 @@ #include "mandoc_ohash.h" #include "mandoc.h" #include "roff.h" +#include "mandoc_parse.h" #include "libmandoc.h" #include "roff_int.h" #include "tbl_parse.h" @@ -3153,8 +3154,7 @@ roff_EQ(ROFF_ARGS) n = roff_node_alloc(r->man, ln, ppos, ROFFT_EQN, TOKEN_NONE); if (ln > r->man->last->line) n->flags |= NODE_LINE; - n->eqn = mandoc_calloc(1, sizeof(*n->eqn)); - n->eqn->expectargs = UINT_MAX; + n->eqn = eqn_box_new(); roff_node_append(r->man, n); r->man->next = ROFF_NEXT_SIBLING;