summaryrefslogtreecommitdiffstats
path: root/eqn.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-10 14:02:02 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-10 14:02:02 +0000
commit532cfc2b569d9997e9e17e3ace323dbf675cf1c5 (patch)
treed5109d66ceab79a98ad5beebeea53aac8dad76a1 /eqn.c
parent74e2ee0aee61823d7337a444e08aca609eb3f5dc (diff)
downloadmandoc-532cfc2b569d9997e9e17e3ace323dbf675cf1c5.tar.gz
No need to assert() that a pointer is non-null right before dereferencing it.
The assert message contains no more information than the segfault.
Diffstat (limited to 'eqn.c')
-rw-r--r--eqn.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/eqn.c b/eqn.c
index 5e1330e5..2de52f4f 100644
--- a/eqn.c
+++ b/eqn.c
@@ -537,10 +537,7 @@ eqn_box_alloc(struct eqn_node *ep, struct eqn_box *parent)
bp->expectargs = UINT_MAX;
bp->size = ep->gsize;
- assert(NULL != parent);
-
if (NULL != parent->first) {
- assert(NULL != parent->last);
parent->last->next = bp;
bp->prev = parent->last;
} else