From eb0dea72c24b4791f73fdf04a19a0fb47a29926a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 16 Apr 2013 22:30:47 +0200 Subject: [PATCH] Fix a Valgrind hit. --- accesslog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accesslog.cpp b/accesslog.cpp index a0467b1..7dfadff 100644 --- a/accesslog.cpp +++ b/accesslog.cpp @@ -16,12 +16,12 @@ using namespace std; AccessLogThread::AccessLogThread() { - pthread_mutex_init(&mutex); + pthread_mutex_init(&mutex, NULL); } AccessLogThread::AccessLogThread(const string &filename) : filename(filename) { - pthread_mutex_init(&mutex); + pthread_mutex_init(&mutex, NULL); } void AccessLogThread::write(const ClientStats& client) -- 2.39.2