[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29205 - gnunet/src/statistics
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29205 - gnunet/src/statistics |
Date: |
Wed, 11 Sep 2013 15:38:24 +0200 |
Author: LRN
Date: 2013-09-11 15:38:24 +0200 (Wed, 11 Sep 2013)
New Revision: 29205
Modified:
gnunet/src/statistics/gnunet-statistics.c
Log:
Don't cancel if we didn't start watching anything in the first place
Modified: gnunet/src/statistics/gnunet-statistics.c
===================================================================
--- gnunet/src/statistics/gnunet-statistics.c 2013-09-11 13:38:21 UTC (rev
29204)
+++ gnunet/src/statistics/gnunet-statistics.c 2013-09-11 13:38:24 UTC (rev
29205)
@@ -162,8 +162,9 @@
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29205 - gnunet/src/statistics,
gnunet <=