From 85d4962b4dd8c3ffa8367ec039b6ddb0134e63cb Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 23 Nov 2005 14:07:54 +0000 Subject: ChangeLogTag: Wed Nov 23 14:07:12 UTC 2005 Johnny Willemsen --- TAO/ChangeLog | 5 +++++ TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 91fc7ad1029..9c4a85e879f 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 23 14:07:12 UTC 2005 Johnny Willemsen + + * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp: + Make sure all generated pointers are initialised to 0 + Wed Nov 23 10:07:12 UTC 2005 Johnny Willemsen * tests/BiDirectional/run_test_ipv6.pl: diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp index 6dd4b94aa4d..7bc33963f7a 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp @@ -750,7 +750,7 @@ be_visitor_valuebox_ci::emit_default_constructor_alloc (be_decl *node) *os << "ACE_INLINE " << be_nl << vb_node->name () << "::" << vb_node->local_name () << " (void)" << be_nl << "{" << be_idt_nl - << node->full_name () << "* p;" << be_nl + << node->full_name () << "* p = 0;" << be_nl << "ACE_NEW (" << be_idt_nl << "p," << be_nl << node->full_name () << " ());" << be_uidt_nl @@ -805,7 +805,7 @@ be_visitor_valuebox_ci::emit_constructor_one_arg_alloc (be_decl *node) << vb_node->name () << "::" << vb_node->local_name () << " (const " << node->full_name () << "& value)" << be_nl << "{" << be_idt_nl - << node->full_name () << "* p;" << be_nl + << node->full_name () << "* p = 0;" << be_nl << "ACE_NEW (" << be_idt_nl << "p," << be_nl << node->full_name () << " (value));" << be_uidt_nl @@ -849,7 +849,7 @@ be_visitor_valuebox_ci::emit_copy_constructor_alloc (be_decl *node) << " ACE_NESTED_CLASS ( ::CORBA, DefaultValueRefCountBase) (val)" << be_uidt_nl << "{" << be_idt_nl - << node->full_name () << "* p;" << be_nl + << node->full_name () << "* p = 0;" << be_nl << "ACE_NEW (" << be_idt_nl << "p," << be_nl << node->full_name () << " (val._pd_value.in ()));" << be_uidt_nl @@ -890,7 +890,7 @@ be_visitor_valuebox_ci::emit_assignment_alloc (be_decl *node) << vb_node->name () << "::operator= (const " << node->full_name () << "& value)" << be_nl << "{" << be_idt_nl - << node->full_name () << "* p;" << be_nl + << node->full_name () << "* p = 0;" << be_nl << "ACE_NEW_RETURN (" << be_idt_nl << "p," << be_nl << node->full_name () << " (value)," << be_nl @@ -928,7 +928,7 @@ be_visitor_valuebox_ci::emit_accessor_modifier (be_decl *node) << vb_node->name () << "::_value (const " << node->full_name () << "& value)" << be_nl << "{" << be_idt_nl - << node->full_name () << "* p;" << be_nl + << node->full_name () << "* p = 0;" << be_nl << "ACE_NEW (" << be_idt_nl << "p," << be_nl << node->full_name () << " (value));" << be_uidt_nl -- cgit v1.2.1