From: smh Date: Wed, 12 May 2004 06:48:53 +0000 (+0000) Subject: PAL5845 X-Git-Tag: Ecole_Ete_a5~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d5bdcc4f019418f0ce0db5ea68bc68d8c238c3e8;p=modules%2Fkernel.git PAL5845 --- 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());