summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/ConnectionI.cpp4
-rw-r--r--cpp/src/IceGrid/Database.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp
index 381eccd8a9c..01141e72b26 100644
--- a/cpp/src/Ice/ConnectionI.cpp
+++ b/cpp/src/Ice/ConnectionI.cpp
@@ -565,7 +565,7 @@ Ice::ConnectionI::sendAsyncRequest(const OutgoingAsyncPtr& out, bool compress, b
#endif
}
- bool sent;
+ bool sent = false;
try
{
OutgoingMessage message(out, os, compress, response);
@@ -875,7 +875,7 @@ Ice::ConnectionI::flushAsyncBatchRequests(const BatchOutgoingAsyncPtr& outAsync)
//
// Send the batch stream.
//
- bool sent;
+ bool sent = false;
try
{
OutgoingMessage message(outAsync, outAsync->__getOs(), _batchRequestCompress, false);
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp
index f6ec1d0f58c..5e5ff949aef 100644
--- a/cpp/src/IceGrid/Database.cpp
+++ b/cpp/src/IceGrid/Database.cpp
@@ -630,7 +630,7 @@ Database::getAllocatableObject(const Ice::Identity& id) const
void
Database::setAdapterDirectProxy(const string& adapterId, const string& replicaGroupId, const Ice::ObjectPrx& proxy)
{
- int serial;
+ int serial = 0;
{
Lock sync(*this);
if(_adapterCache.has(adapterId))