aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-22 13:22:49 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-22 13:22:49 +0000
commit6aba3a8920b721732c32f1722b49971005fa94de (patch)
tree085c4980470a4f03e81fb58b164212d1aefdc75b /src/statistics
parent9c00e8239e2830a104fd97f5e93ddfc48227ca08 (diff)
downloadgnunet-6aba3a8920b721732c32f1722b49971005fa94de.tar.gz
gnunet-6aba3a8920b721732c32f1722b49971005fa94de.zip
-fix NPE
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/statistics_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index f72c8525b..5ba78521c 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -921,7 +921,8 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h,
921 return; 921 return;
922 GNUNET_assert (GNUNET_NO == h->do_destroy); /* Don't call twice. */ 922 GNUNET_assert (GNUNET_NO == h->do_destroy); /* Don't call twice. */
923 if ( (sync_first) && 923 if ( (sync_first) &&
924 (0 != GNUNET_MQ_get_length (h->mq)) && 924 (NULL != h->mq) &&
925 (0 != GNUNET_MQ_get_length (h->mq))
925 (GNUNET_YES == try_connect (h)) ) 926 (GNUNET_YES == try_connect (h)) )
926 { 927 {
927 if ( (NULL != h->current) && 928 if ( (NULL != h->current) &&