projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c9986a
)
Don't cancel if we didn't start watching anything in the first place
author
LRN
<lrn1986@gmail.com>
Wed, 11 Sep 2013 13:38:24 +0000
(13:38 +0000)
committer
LRN
<lrn1986@gmail.com>
Wed, 11 Sep 2013 13:38:24 +0000
(13:38 +0000)
src/statistics/gnunet-statistics.c
patch
|
blob
|
history
diff --git
a/src/statistics/gnunet-statistics.c
b/src/statistics/gnunet-statistics.c
index b1a447cf3e8667313cf999c481e477c5b0946897..2de58a0701a93e568616ed3aba74ee3dbd396a44 100644
(file)
--- a/
src/statistics/gnunet-statistics.c
+++ b/
src/statistics/gnunet-statistics.c
@@
-162,8
+162,9
@@
shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
if (NULL == h)
return;
- GNUNET_assert (GNUNET_OK ==
- GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h));
+ if (NULL != subsystem && NULL != name)
+ GNUNET_assert (GNUNET_OK ==
+ GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h));
GNUNET_STATISTICS_destroy (h, GNUNET_NO);
h = NULL;
}