From dba3c1394094e1d8222d2b8d350fa2519c5ad431 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik <andy.cedilnik@kitware.com> Date: Tue, 2 Nov 2004 17:11:54 -0500 Subject: [PATCH] COMP: Remove compile warning --- SystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index e72e02d2..f6d7641d 100644 --- a/SystemTools.cxx +++ b/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()) ) -- GitLab