浏览代码

BUG: fix broken command

Bill Hoffman 22 年之前
父节点
当前提交
0a29ebad97
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmRemoveCommand.cxx

+ 2 - 2
Source/cmRemoveCommand.cxx

@@ -51,10 +51,10 @@ bool cmRemoveCommand::InitialPass(std::vector<std::string> const& args)
   
   // now create the new value
   std::string value;
-  for(unsigned int j = 1; j < varArgsExpanded.size(); ++j)
+  for(unsigned int j = 0; j < varArgsExpanded.size(); ++j)
     {
     int found = 0;
-    for(unsigned int k = 1; k < argsExpanded.size(); ++k)
+    for(unsigned int k = 0; k < argsExpanded.size(); ++k)
       {
       if (varArgsExpanded[j] == argsExpanded[k])
         {