From: Matthias Wachs Date: Thu, 26 Apr 2012 08:00:03 +0000 (+0000) Subject: - fix for mantis 2273 X-Git-Tag: initial-import-from-subversion-38251~13774 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67265ae5d369df052fd587306e736169f7f448e1;p=oweals%2Fgnunet.git - fix for mantis 2273 --- diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 8b61a3bc9..98316bafd 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -1140,6 +1140,8 @@ GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle, for (i=0;iwatches_size;i++) { w = handle->watches[i]; + if (NULL == w) + continue; if ( (w->proc == proc) && (w->proc_cls == proc_cls) && (0 == strcmp (w->name, name)) &&