From: ana Date: Tue, 13 May 2014 11:51:20 +0000 (+0400) Subject: Win32: Fix error in Debug mode X-Git-Tag: V7_4_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6e4eb556d8520aa2d562a6a0db9fdce0f18cfa1;p=modules%2Fmed.git Win32: Fix error in Debug mode --- diff --git a/src/MEDLoader/MEDLoaderBase.cxx b/src/MEDLoader/MEDLoaderBase.cxx index 86bf9c227..0d661aa69 100644 --- a/src/MEDLoader/MEDLoaderBase.cxx +++ b/src/MEDLoader/MEDLoaderBase.cxx @@ -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;