From e6bef967111da65f786af02f31cb76b502210b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 9 Dec 2010 19:03:41 +0100 Subject: [PATCH] ThreadExecutor: Fixed error message 'member variable _pipe not initialized'. Ticket: #2283 --- cli/threadexecutor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index 38a7e9062..998c300a2 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -33,7 +33,9 @@ ThreadExecutor::ThreadExecutor(const std::vector &filenames, const Settings &settings, ErrorLogger &errorLogger) : _filenames(filenames), _settings(settings), _errorLogger(errorLogger), _fileCount(0) { - +#if (defined(__GNUC__) || defined(__sun)) && !defined(__MINGW32__) + _pipe[0] = _pipe[1] = 0; +#endif } ThreadExecutor::~ThreadExecutor()