diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-10 14:02:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-10 14:02:02 +0000 |
commit | 532cfc2b569d9997e9e17e3ace323dbf675cf1c5 (patch) | |
tree | d5109d66ceab79a98ad5beebeea53aac8dad76a1 /eqn.c | |
parent | 74e2ee0aee61823d7337a444e08aca609eb3f5dc (diff) | |
download | mandoc-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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 |