summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index c99b4145..47314994 100644
--- a/roff.c
+++ b/roff.c
@@ -3153,8 +3153,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;