summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-01-12 04:13:46 +0000
committerMichi Henning <michi@zeroc.com>2004-01-12 04:13:46 +0000
commit92b18126fe980552a54992b835a3f6e35b4140e6 (patch)
tree859e2afad8e15ee85310cbb6285b2b653bb3dced /cpp/src/Ice/ThreadPool.cpp
parentCatch marshalling error in saving thread (diff)
downloadice-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.cpp1
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(...)
{