summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/be/be_state_operation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_state_operation.cpp b/TAO/TAO_IDL/be/be_state_operation.cpp
index 7ad79ff0b9a..bd6894d4d1c 100644
--- a/TAO/TAO_IDL/be/be_state_operation.cpp
+++ b/TAO/TAO_IDL/be/be_state_operation.cpp
@@ -338,17 +338,17 @@ be_state_operation::gen_code (be_type *bt, be_decl *d, be_type *type)
{
if (bt->node_type () == AST_Decl::NT_typedef)
{
- *os << bt->name () << " retval;" << nl;
+ *os << bt->name () << " *retval = new " << bt->name () << "*;" << nl;
}
else
{
- *os << "char *retval;" << nl;
+ *os << "char **retval = new char*;" << nl;
}
}
break;
case TAO_CodeGen::TAO_OPERATION_RETVAL_ASSIGN_SS:
{
- *os << "retval";
+ *os << "*retval";
}
break;
case TAO_CodeGen::TAO_OPERATION_RESULT_SS: