From d5bdcc4f019418f0ce0db5ea68bc68d8c238c3e8 Mon Sep 17 00:00:00 2001 From: smh Date: Wed, 12 May 2004 06:48:53 +0000 Subject: [PATCH] PAL5845 --- src/SALOMEDS/SALOMEDS_SObject_i.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SALOMEDS/SALOMEDS_SObject_i.cxx b/src/SALOMEDS/SALOMEDS_SObject_i.cxx index c202a0921..25cb25ac7 100644 --- a/src/SALOMEDS/SALOMEDS_SObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SObject_i.cxx @@ -258,7 +258,7 @@ CORBA::Object_ptr SALOMEDS_SObject_i::GetObject() */ //============================================================================ char* SALOMEDS_SObject_i::GetName() { - CORBA::String_var aStr; + CORBA::String_var aStr = CORBA::string_dup( "" ); Handle(TDataStd_Name) aName; if (_lab.FindAttribute(TDataStd_Name::GetID(), aName)) { aStr = CORBA::string_dup(TCollection_AsciiString(aName->Get()).ToCString()); @@ -272,7 +272,7 @@ char* SALOMEDS_SObject_i::GetName() { */ //============================================================================ char* SALOMEDS_SObject_i::GetComment() { - CORBA::String_var aStr; + CORBA::String_var aStr = CORBA::string_dup( "" ); Handle(TDataStd_Comment) aComment; if (_lab.FindAttribute(TDataStd_Comment::GetID(), aComment)) { aStr = CORBA::string_dup(TCollection_AsciiString(aComment->Get()).ToCString()); @@ -286,7 +286,7 @@ char* SALOMEDS_SObject_i::GetComment() { */ //============================================================================ char* SALOMEDS_SObject_i::GetIOR() { - CORBA::String_var aStr; + CORBA::String_var aStr = CORBA::string_dup( "" ); Handle(SALOMEDS_IORAttribute) anIOR; if (_lab.FindAttribute(SALOMEDS_IORAttribute::GetID(), anIOR)) { aStr = CORBA::string_dup(TCollection_AsciiString(anIOR->Get()).ToCString()); -- 2.39.2