summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmFindLibraryCommand.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index a17bcfa..84959dc 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -54,13 +54,11 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args)
std::string helpString = "Where can the ";
if(args[1] == "NAMES")
{
- int i = 2;
- while(args[i] != "PATHS" && i < args.size())
+ for(unsigned int i=2; (args[i] != "PATHS" && i < args.size()); ++i)
{
helpString = "( ";
helpString += args[i];
helpString += " ";
- i++;
}
}
else