[master] 4b78318 Fix make check under osx while VSC work is ongoing

Federico G. Schwindt fgsch at lodoss.net
Wed May 24 02:58:05 CEST 2017


commit 4b78318decc308b83139d3411146bdcdd0b673a0
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed May 24 01:54:58 2017 +0100

    Fix make check under osx while VSC work is ongoing

diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 6bf507d..5dcf603 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -45,7 +45,7 @@
 
 /* These cannot be struct lock, which depends on vsm/vsl working */
 static pthread_mutex_t vsl_mtx;
-static pthread_mutex_t vsm_mtx;
+static pthread_mutex_t vsm_mtx = PTHREAD_MUTEX_INITIALIZER;
 
 static struct VSL_head		*vsl_head;
 static const uint32_t		*vsl_end;



More information about the varnish-commit mailing list