diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-11-02 22:11:54 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-11-02 22:11:54 (GMT) |
commit | 95f67dca9e93ad789088dec47526acf7331d2969 (patch) | |
tree | f4e6ceed4eb451394112a5be70d64bbbcb2e484b /Source/kwsys | |
parent | fd8ae3d34c444cef04c77a38b55e0baee94f6753 (diff) | |
download | CMake-95f67dca9e93ad789088dec47526acf7331d2969.zip CMake-95f67dca9e93ad789088dec47526acf7331d2969.tar.gz CMake-95f67dca9e93ad789088dec47526acf7331d2969.tar.bz2 |
COMP: Remove compile warning
Diffstat (limited to 'Source/kwsys')
-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()) ) |