aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-11 14:35:23 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-11 14:35:23 +0000
commit6ad6cc958f2396679783452dd983f5037738e555 (patch)
treeafdbff02aba9b10961cfbaa1dd81575f1ffd97f1 /src
parent615b36e986bb841326ebb1ef45188b24309d1f02 (diff)
downloadgnunet-6ad6cc958f2396679783452dd983f5037738e555.tar.gz
gnunet-6ad6cc958f2396679783452dd983f5037738e555.zip
-fix assertion
Diffstat (limited to 'src')
-rw-r--r--src/statistics/gnunet-statistics.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index c4012e31b..8dc84190d 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -162,7 +162,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
162 162
163 if (NULL == h) 163 if (NULL == h)
164 return; 164 return;
165 if (GNUNET_YES == watch) 165 if ( (GNUNET_YES == watch) &&
166 (NULL != subsystem) &&
167 (NULL != name) )
166 GNUNET_assert (GNUNET_OK == 168 GNUNET_assert (GNUNET_OK ==
167 GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h)); 169 GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h));
168 GNUNET_STATISTICS_destroy (h, GNUNET_NO); 170 GNUNET_STATISTICS_destroy (h, GNUNET_NO);