Fix a Valgrind hit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:30:30 +0000 (22:30 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:30:30 +0000 (22:30 +0200)
accesslog.cpp

index b666f27..a0467b1 100644 (file)
 
 using namespace std;
 
-AccessLogThread::AccessLogThread() {}
+AccessLogThread::AccessLogThread()
+{
+       pthread_mutex_init(&mutex);
+}
 
 AccessLogThread::AccessLogThread(const string &filename)
-       : filename(filename) {}
+       : filename(filename) {
+       pthread_mutex_init(&mutex);
+}
 
 void AccessLogThread::write(const ClientStats& client)
 {