X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.c;h=05386db9d33e9f12fa486ec90cf5cbf67868c23d;hb=f2398e39bc84d49081ca5bdd216584acf70013a0;hp=fa6e6603ec3e10eedcdc6ea7d56ab64a0b04db6e;hpb=4975b66d57de9e3955fe5e4afac0721e7eb0ce46;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 */