QReadWriteLock: initialize member var currentWriter

Found by valgrind's memcheck.

Change-Id: I68f7c9279033e76d82f511b9d095548b4ef45723
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
David Faure 2016-06-13 13:55:38 +02:00
parent 3c87c82e52
commit 7b23ebefb2

View File

@ -65,7 +65,7 @@ class QReadWriteLockPrivate
public:
QReadWriteLockPrivate(bool isRecursive = false)
: readerCount(0), writerCount(0), waitingReaders(0), waitingWriters(0),
recursive(isRecursive), id(0) {}
recursive(isRecursive), id(0), currentWriter(nullptr) {}
QMutex mutex;
QWaitCondition writerCond;