From: Florian Forster Date: Sun, 28 Oct 2007 19:07:28 +0000 (+0100) Subject: src/utils_cache.c: Initialize the mutex correctly. X-Git-Tag: collectd-4.3.0beta0~126 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b21548a1cc53f2130b5a474fe79f427b4d3675c6;p=collectd.git src/utils_cache.c: Initialize the mutex correctly. --- diff --git a/src/utils_cache.c b/src/utils_cache.c index 79989a07..9349a1f4 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -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) {