- fix for mantis 2273
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 26 Apr 2012 08:00:03 +0000 (08:00 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 26 Apr 2012 08:00:03 +0000 (08:00 +0000)
src/statistics/statistics_api.c

index 8b61a3bc91f804cec67fe3ce91071c0719b15768..98316bafd66b7b3341ea3bd84ba2936004e29c73 100644 (file)
@@ -1140,6 +1140,8 @@ GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle,
   for (i=0;i<handle->watches_size;i++)
   {
     w = handle->watches[i];
+    if (NULL == w)
+      continue;
     if ( (w->proc == proc) &&
         (w->proc_cls == proc_cls) &&
         (0 == strcmp (w->name, name)) &&