From 3292acbca8501925e4e4f875c4d374be76a46f19 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 10 Oct 2014 14:02:02 +0000 Subject: No need to assert() that a pointer is non-null right before dereferencing it. The assert message contains no more information than the segfault. --- eqn.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'eqn.c') diff --git a/eqn.c b/eqn.c index fa65811e..fbbef811 100644 --- a/eqn.c +++ b/eqn.c @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.49 2014/10/10 09:12:44 kristaps Exp $ */ +/* $Id: eqn.c,v 1.50 2014/10/10 14:02:02 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -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 -- cgit v1.2.3-56-ge451