summaryrefslogtreecommitdiff
path: root/ace/Containers_T.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-10-17 16:17:17 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-10-17 16:17:17 +0000
commitb3114f20203cbdfbc3f25419b180c01f8cc78a95 (patch)
treea5bdf9c1206abe950df1fa01f27b9dc793f018d1 /ace/Containers_T.i
parent99fd44ea2b456bade9853f97b03a9c3ee743b3a8 (diff)
downloadATCD-b3114f20203cbdfbc3f25419b180c01f8cc78a95.tar.gz
ChangeLogTag:Sun Oct 17 11:00:46 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Containers_T.i')
-rw-r--r--ace/Containers_T.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/Containers_T.i b/ace/Containers_T.i
index e39c2208bf1..664d766faac 100644
--- a/ace/Containers_T.i
+++ b/ace/Containers_T.i
@@ -442,7 +442,8 @@ ACE_DLList<T>::get (T *&item, size_t index)
{
ACE_DLList_Node *node;
int result = ACE_DLList_Base::get (node, index);
- item = (T *) node->item_;
+ if (result != -1)
+ item = (T *) node->item_;
return result;
}