summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/util/utl_stack.cpp
diff options
context:
space:
mode:
authormcorino <mcorino@users.noreply.github.com>2011-12-08 09:07:48 +0000
committermcorino <mcorino@users.noreply.github.com>2011-12-08 09:07:48 +0000
commita67fe0bc8c98af0f2f0b468857c51f21f47d8e72 (patch)
treee99132cffef6ff51e76a05dd9ef5fa29da7d2f6a /TAO/TAO_IDL/util/utl_stack.cpp
parent094ebad8a4a3fac5422728616e3181cf3d0928f2 (diff)
downloadATCD-RemedyWorkSAStart.tar.gz
restart work sa branchRemedyWorkSAStart
Diffstat (limited to 'TAO/TAO_IDL/util/utl_stack.cpp')
-rw-r--r--TAO/TAO_IDL/util/utl_stack.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/util/utl_stack.cpp b/TAO/TAO_IDL/util/utl_stack.cpp
index aac41c094af..70c0168fe62 100644
--- a/TAO/TAO_IDL/util/utl_stack.cpp
+++ b/TAO/TAO_IDL/util/utl_stack.cpp
@@ -129,9 +129,11 @@ UTL_ScopeStack::pop (void)
return;
}
+ UTL_Scope *current = this->top ();
+
// If our top scope has a #pragma prefix associated with it,
// it goes away with the scope.
- if (this->top_non_null ()->has_prefix ())
+ if (current != 0 && current->has_prefix ())
{
char *trash = 0;
idl_global->pragma_prefixes ().pop (trash);