]> git.sesse.net Git - cubemap/commitdiff
Fix a Valgrind hit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:30:47 +0000 (22:30 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:30:47 +0000 (22:30 +0200)
accesslog.cpp

index a0467b1572603c17ea74ea2839e5408f7bdf13f5..7dfadff5bbd5923a0ef74ac1566b32c506a80f3c 100644 (file)
@@ -16,12 +16,12 @@ using namespace std;
 
 AccessLogThread::AccessLogThread()
 {
 
 AccessLogThread::AccessLogThread()
 {
-       pthread_mutex_init(&mutex);
+       pthread_mutex_init(&mutex, NULL);
 }
 
 AccessLogThread::AccessLogThread(const string &filename)
        : filename(filename) {
 }
 
 AccessLogThread::AccessLogThread(const string &filename)
        : filename(filename) {
-       pthread_mutex_init(&mutex);
+       pthread_mutex_init(&mutex, NULL);
 }
 
 void AccessLogThread::write(const ClientStats& client)
 }
 
 void AccessLogThread::write(const ClientStats& client)