summaryrefslogtreecommitdiff
path: root/ace/Hash_Map_Manager.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-18 15:22:01 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-18 15:22:01 +0000
commit283e430997188a5fbad39c77d740e1545e780617 (patch)
tree1ec881bd1f7b83a8e976dec8690ce5f37574724a /ace/Hash_Map_Manager.cpp
parentdcc26c3f3e61ea31e992073d826ed6927bd6bbb0 (diff)
downloadATCD-283e430997188a5fbad39c77d740e1545e780617.tar.gz
(operator *): initialize retv to 0 to avoid warning about using it before setting its value
Diffstat (limited to 'ace/Hash_Map_Manager.cpp')
-rw-r--r--ace/Hash_Map_Manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/Hash_Map_Manager.cpp b/ace/Hash_Map_Manager.cpp
index 9556cdae860..8260d1aaad8 100644
--- a/ace/Hash_Map_Manager.cpp
+++ b/ace/Hash_Map_Manager.cpp
@@ -398,12 +398,12 @@ ACE_Hash_Map_Manager<EXT_ID, INT_ID, ACE_LOCK>::shared_find (const EXT_ID &ext_i
u_long &loc)
{
loc = this->hash (ext_id) % this->total_size_;
-
+
ACE_Hash_Map_Entry<EXT_ID, INT_ID> *temp = this->table_[loc].next_;
-
+
while (temp != &this->table_[loc] && this->equal (temp->ext_id_, ext_id) == 0)
temp = temp->next_;
-
+
if (temp == &this->table_[loc])
{
errno = ENOENT;
@@ -705,7 +705,7 @@ ACE_Hash_Map_Entry<EXT_ID, INT_ID>&
ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::operator* (void)
{
ACE_TRACE ("ACE_Hash_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::operator*");
- ACE_Hash_Map_Entry<EXT_ID, INT_ID> *retv;
+ ACE_Hash_Map_Entry<EXT_ID, INT_ID> *retv = 0;
ACE_ASSERT (this->next (retv) != 0);
return *retv;