From 65e4f8505d33e3079d386731845cbd6c413966fd Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 25 Oct 2017 11:15:39 +0200 Subject: [PATCH] Debug #54 --- common/clitkCommon.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } //// -- 2.46.0