diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-16 22:15:51 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-16 22:15:51 +0000 |
commit | 49dea09600d1249a265cd6b6b654b3f926c7afbe (patch) | |
tree | df106469998ae8c325e8e9fb9279e89b8dd73acd /src/util | |
parent | 99cf32413601c3348f665c4132a6a096e00f3b54 (diff) | |
download | gnunet-49dea09600d1249a265cd6b6b654b3f926c7afbe.tar.gz gnunet-49dea09600d1249a265cd6b6b654b3f926c7afbe.zip |
turn if into assert
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/mq.c | 6 |
1 files changed, 2 insertions, 4 deletions
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, | |||
612 | const struct GNUNET_MessageHeader * | 612 | const struct GNUNET_MessageHeader * |
613 | GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq) | 613 | GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq) |
614 | { | 614 | { |
615 | if (NULL == mq->current_envelope) | 615 | GNUNET_assert (NULL != mq->current_envelope); |
616 | GNUNET_assert (0); | 616 | GNUNET_assert (NULL == mq->current_envelope->mh); |
617 | if (NULL == mq->current_envelope->mh) | ||
618 | GNUNET_assert (0); | ||
619 | return mq->current_envelope->mh; | 617 | return mq->current_envelope->mh; |
620 | } | 618 | } |
621 | 619 | ||