From: tbaudier Date: Wed, 25 Oct 2017 09:15:39 +0000 (+0200) Subject: Debug #54 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=65e4f8505d33e3079d386731845cbd6c413966fd;p=clitk.git Debug #54 --- diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index 55b9927..96980bb 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -81,7 +81,8 @@ std::vector clitk::SplitFilename(const std::string& filename) std::vector pathComponents; itksys::SystemTools::SplitPath(filename.c_str(), pathComponents); std::string fileName = pathComponents.back(); - dirname.push_back(path); + if (path != "") + dirname.push_back(path); dirname.push_back(fileName); return( dirname ); } ////