Code

libvirt plugin: Renamed the `libvirtstats' plugin to `libvirt'.
[collectd.git] / src / utils_cache.c
index 79989a07aedf0247712ca0805499e750de1bec35..9349a1f4a1c9364f8b170a1e324011a818f34167 100644 (file)
@@ -37,7 +37,7 @@ typedef struct cache_entry_s
 } cache_entry_t;
 
 static avl_tree_t     *cache_tree = NULL;
-static pthread_mutex_t cache_lock;
+static pthread_mutex_t cache_lock = PTHREAD_MUTEX_INITIALIZER;
 
 static int cache_compare (const cache_entry_t *a, const cache_entry_t *b)
 {