X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.c;h=05386db9d33e9f12fa486ec90cf5cbf67868c23d;hb=c01a8a74399648f8b44b2fb39366cece051b61ad;hp=fa6e6603ec3e10eedcdc6ea7d56ab64a0b04db6e;hpb=5eb71045f1d3b72b17e922a86b5014f68345b5b3;p=collectd.git diff --git a/src/utils_cache.c b/src/utils_cache.c index fa6e6603..05386db9 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -68,7 +68,9 @@ static pthread_mutex_t cache_lock = PTHREAD_MUTEX_INITIALIZER; static int cache_compare (const cache_entry_t *a, const cache_entry_t *b) { +#if COLLECT_DEBUG assert ((a != NULL) && (b != NULL)); +#endif return (strcmp (a->name, b->name)); } /* int cache_compare */