From: akl Date: Tue, 11 Mar 2014 07:07:29 +0000 (+0400) Subject: Fix of bug 0022506: [CEA 1086] Import in GEOM returns "unknown exception" X-Git-Tag: V7_4_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05a2e86bac77019bc8ed56e4be87847ffa239282;p=modules%2Fgeom.git Fix of bug 0022506: [CEA 1086] Import in GEOM returns "unknown exception" --- diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index 983b68e83..c9275139c 100755 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -563,7 +563,8 @@ Standard_Boolean GEOMImpl_IInsertOperations::InitResMgr() myResMgrList.clear(); // Initialize the GEOM Resource Manager - TCollection_AsciiString aResDir = TCollection_AsciiString(getenv("GEOM_ROOT_DIR")); + TCollection_AsciiString aResDir; + aResDir = getenv("GEOM_ROOT_DIR"); #ifdef WIN32 aResDir += "\\share\\salome\\resources\\geom"; #else @@ -576,7 +577,8 @@ Standard_Boolean GEOMImpl_IInsertOperations::InitResMgr() } // Initialize the user's Resource Manager - TCollection_AsciiString aResDirsStr = getenv("GEOM_ENGINE_RESOURCES_DIR"); + TCollection_AsciiString aResDirsStr; + aResDirsStr = getenv("GEOM_ENGINE_RESOURCES_DIR"); if ( !aResDirsStr.IsEmpty() ) { std::string aSep = ":";