aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-22 13:23:07 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-22 13:23:07 +0000
commit43c73b22d65bb24511f7aa9c9168b4ff2e8d4d56 (patch)
tree71fa760f8cbd087b5a97d05c9ca931e6b6c143ea
parent6aba3a8920b721732c32f1722b49971005fa94de (diff)
-fix NPE
-rw-r--r--src/statistics/statistics_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index 5ba78521c5..c8709145bb 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -922,7 +922,7 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h,
GNUNET_assert (GNUNET_NO == h->do_destroy); /* Don't call twice. */
if ( (sync_first) &&
(NULL != h->mq) &&
- (0 != GNUNET_MQ_get_length (h->mq))
+ (0 != GNUNET_MQ_get_length (h->mq)) &&
(GNUNET_YES == try_connect (h)) )
{
if ( (NULL != h->current) &&