From b21548a1cc53f2130b5a474fe79f427b4d3675c6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 28 Oct 2007 20:07:28 +0100 Subject: [PATCH] src/utils_cache.c: Initialize the mutex correctly. --- src/utils_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.11.0