diff options
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_decl.cpp')
-rw-r--r-- | TAO/TAO_IDL/ast/ast_decl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp index 2b31782eb3d..e0d6d1792f5 100644 --- a/TAO/TAO_IDL/ast/ast_decl.cpp +++ b/TAO/TAO_IDL/ast/ast_decl.cpp @@ -437,8 +437,9 @@ AST_Decl::compute_repoID (void) long first = I_TRUE; long second = I_FALSE; char *name = 0; - const char *prefix = this->prefix_; + const char *prefix = (this->prefix_ ? this->prefix_ : ""); UTL_Scope *scope = this->defined_in (); + const char *parent_prefix = 0; // If our prefix is empty, we check to see if an ancestor has one. while (ACE_OS::strcmp (prefix, "") == 0 && scope != 0) @@ -451,7 +452,8 @@ AST_Decl::compute_repoID (void) break; } - prefix = parent->prefix (); + parent_prefix = parent->prefix (); + prefix = (parent_prefix ? parent_prefix : ""); scope = parent->defined_in (); } |