Просмотр исходного кода

BUG: Fix ExpandListArgument when the string ends in a backslash.

Brad King 18 лет назад
Родитель
Сommit
9bfe711ef1
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      Source/cmSystemTools.cxx

+ 5 - 0
Source/cmSystemTools.cxx

@@ -1152,6 +1152,11 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
             {
             newArgVec.push_back(*c);
             }
+          else
+            {
+            // Terminate the loop properly.
+            --c;
+            }
           }
         } break;
       case '[':