From: Steinar H. Gunderson Date: Tue, 16 Apr 2013 20:30:47 +0000 (+0200) Subject: Fix a Valgrind hit. X-Git-Tag: 1.0.0~88 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=eb0dea72c24b4791f73fdf04a19a0fb47a29926a Fix a Valgrind hit. --- 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)