summaryrefslogtreecommitdiff
path: root/TAO/tao/Service_Context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Service_Context.cpp')
-rw-r--r--TAO/tao/Service_Context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TAO/tao/Service_Context.cpp b/TAO/tao/Service_Context.cpp
index a3b21b71162..6e9088a6f3b 100644
--- a/TAO/tao/Service_Context.cpp
+++ b/TAO/tao/Service_Context.cpp
@@ -212,7 +212,7 @@ TAO_Service_Context::encode (TAO_OutputCDR& cdr) const
int
TAO_Service_Context::decode (TAO_InputCDR& cdr)
{
- if ((cdr >> this->service_context_) == 0)
+ if (!(cdr >> this->service_context_))
{
return 0;
}