summaryrefslogtreecommitdiff
path: root/ace/Handle_Set.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Handle_Set.i')
-rw-r--r--ace/Handle_Set.i6
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/Handle_Set.i b/ace/Handle_Set.i
index 839e567ad2a..ef4de0115a8 100644
--- a/ace/Handle_Set.i
+++ b/ace/Handle_Set.i
@@ -90,7 +90,11 @@ ACE_INLINE
ACE_Handle_Set::operator fd_set *()
{
ACE_TRACE ("ACE_Handle_Set::operator ACE_FD_SET_TYPE *");
- return (fd_set *) &this->mask_;
+
+ if (this->size_ > 0)
+ return (fd_set*) &this->mask_;
+ else
+ return (fd_set*) NULL;
}
ACE_INLINE ACE_HANDLE