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~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b7d77726a3c631082f86dc16cfb908eef1112d3;p=tools%2Fmedcoupling.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;