Code

Merge pull request #427 from kbingham/version_fix
[collectd.git] / src / utils_cache.c
index fa6e6603ec3e10eedcdc6ea7d56ab64a0b04db6e..05386db9d33e9f12fa486ec90cf5cbf67868c23d 100644 (file)
@@ -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 */