* mdocml: No need to assert() that a pointer is non-null right before
@ 2014-10-10 14:02 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-10-10 14:02 UTC (permalink / raw)
To: source
Log Message:
-----------
No need to assert() that a pointer is non-null right before dereferencing it.
The assert message contains no more information than the segfault.
Modified Files:
--------------
mdocml:
eqn.c
Revision Data
-------------
Index: eqn.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/eqn.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -Leqn.c -Leqn.c -u -p -r1.49 -r1.50
--- eqn.c
+++ eqn.c
@@ -537,10 +537,7 @@ eqn_box_alloc(struct eqn_node *ep, struc
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
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-10 14:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-10 14:02 mdocml: No need to assert() that a pointer is non-null right before schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).