diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 39d31a3..8d7b5bb 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -2079,7 +2079,7 @@ kwsys_stl::string SystemTools::FileExistsInParentDirectories(const char* fname, SystemTools::ConvertToUnixSlashes(file); kwsys_stl::string dir = directory; SystemTools::ConvertToUnixSlashes(dir); - while ( 1 ) + while ( !dir.empty() ) { kwsys_stl::string path = dir + "/" + file; if ( SystemTools::FileExists(path.c_str()) ) |