Procházet zdrojové kódy

COMP: Remove compile warning

Andy Cedilnik před 21 roky
rodič
revize
95f67dca9e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
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()) )