From: Florian Dold Date: Sun, 16 Oct 2016 22:15:51 +0000 (+0000) Subject: turn if into assert X-Git-Tag: initial-import-from-subversion-38251~90 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49dea09600d1249a265cd6b6b654b3f926c7afbe;p=oweals%2Fgnunet.git turn if into assert --- diff --git a/src/util/mq.c b/src/util/mq.c index 0ada6e9b0..312fb3ff0 100644 --- a/src/util/mq.c +++ b/src/util/mq.c @@ -612,10 +612,8 @@ GNUNET_MQ_set_handlers_closure (struct GNUNET_MQ_Handle *mq, const struct GNUNET_MessageHeader * GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq) { - if (NULL == mq->current_envelope) - GNUNET_assert (0); - if (NULL == mq->current_envelope->mh) - GNUNET_assert (0); + GNUNET_assert (NULL != mq->current_envelope); + GNUNET_assert (NULL == mq->current_envelope->mh); return mq->current_envelope->mh; }