From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s9AE24h3032584 for ; Fri, 10 Oct 2014 10:02:04 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s9AE22nx015166; Fri, 10 Oct 2014 10:02:02 -0400 (EDT) Date: Fri, 10 Oct 2014 10:02:02 -0400 (EDT) Message-Id: <201410101402.s9AE22nx015166@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: No need to assert() that a pointer is non-null right before X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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