diff options
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 4aa98ea..5d34ac5 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1959,7 +1959,10 @@ kwsys_stl::string SystemTools::FindProgram( kwsys_stl::string result = SystemTools::FindProgram(it->c_str(), path, noSystemPath); - return result; + if ( !result.empty() ) + { + return result; + } } return ""; } |