diff options
author | Michi Henning <michi@zeroc.com> | 2004-01-12 04:13:46 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-01-12 04:13:46 +0000 |
commit | 92b18126fe980552a54992b835a3f6e35b4140e6 (patch) | |
tree | 859e2afad8e15ee85310cbb6285b2b653bb3dced /cpp/src/Ice/ThreadPool.cpp | |
parent | Catch marshalling error in saving thread (diff) | |
download | ice-92b18126fe980552a54992b835a3f6e35b4140e6.tar.bz2 ice-92b18126fe980552a54992b835a3f6e35b4140e6.tar.xz ice-92b18126fe980552a54992b835a3f6e35b4140e6.zip |
Added missing initializer for the local variable "promote" in
EventHandlerThread::run(). If a std::exception was thrown from
_pool->run(), promote was left uninitialized.
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 545d1e9edfd..98812026aa7 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -756,6 +756,7 @@ IceInternal::ThreadPool::EventHandlerThread::run() { Error out(_pool->_instance->logger()); out << "std::exception in `" << _pool->_prefix << "':\n" << ex.what(); + promote = true; } catch(...) { |