Explorar el Código

GenEx: Break if there are no more commas in the container

This was causing an assert on Windows which has safety features for
iterating past the end of the container.
Stephen Kelly hace 13 años
padre
commit
6dd2b36559
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Source/cmGeneratorExpressionParser.cxx

+ 4 - 0
Source/cmGeneratorExpressionParser.cxx

@@ -192,6 +192,10 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression(
           {
           extendText(result, *commaIt);
           }
+        else
+          {
+          break;
+          }
         }
       }
     return;