]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Win32: Fix error in Debug mode
authorana <ana@opencascade.com>
Tue, 13 May 2014 11:51:20 +0000 (15:51 +0400)
committerana <ana@opencascade.com>
Tue, 13 May 2014 11:51:20 +0000 (15:51 +0400)
src/MEDLoader/MEDLoaderBase.cxx

index 86bf9c2270f36b30ca95044df908af71609ffb1b..0d661aa69e23454aac8e7b607219c92d4470b755 100644 (file)
@@ -89,7 +89,7 @@ std::string MEDLoaderBase::buildUnionUnit(const char *name, int nameLgth, const
 {
   std::string ret(buildStringFromFortran(name,nameLgth));
   std::string unitCpp(buildStringFromFortran(unit,unitLgth));
-  if(unitCpp[0]=='\0')
+  if(unitCpp.empty() || unitCpp[0]=='\0')
     return ret;
   ret+=" [";
   ret+=unitCpp;