summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TAO/tao/Transport.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp
index bb463af97c2..d1b70a2da54 100644
--- a/TAO/tao/Transport.cpp
+++ b/TAO/tao/Transport.cpp
@@ -822,7 +822,11 @@ TAO_Transport::drain_queue_i (void)
// the loop because after the loop there may still be data to be
// sent
int iovcnt = 0;
+#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
+ iovec iov[ACE_IOV_MAX] = { 0 };
+#else
iovec iov[ACE_IOV_MAX];
+#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */
// We loop over all the elements in the queue ...
TAO_Queued_Message *i = this->head_;