fix $$split()'s argument check

Change-Id: I2cd6dc1ad571497f540360d17dadd5e4b300ef4a
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Oswald Buddenhagen
2012-07-24 17:52:02 +02:00
parent e781031b1e
commit 780c0eac10

View File

@@ -311,7 +311,7 @@ ProStringList QMakeEvaluator::evaluateExpandFunction(
break;
}
case E_SPLIT:
if (args.count() != 2) {
if (args.count() < 1 || args.count() > 2) {
evalError(fL1S("split(var, sep) requires one or two arguments"));
} else {
const QString &sep = (args.count() == 2) ? args.at(1).toQString(m_tmp1) : statics.field_sep;