Could reach end of rulesFromJsonV4 method without returning a QList

It was possible for execution to reach the end of the rulesFromJsonV4
method without returning. This was causing a crash on OS X when parsing
rules inside an instance.
This commit is contained in:
Anthony Parrott 2013-11-28 14:50:04 -05:00
parent fec8c054c3
commit c0c7037e18

View File

@ -56,6 +56,7 @@ QList<std::shared_ptr<Rule>> rulesFromJsonV4(QJsonObject &objectWithRules)
// add a new OS rule // add a new OS rule
rules.append(OsRule::create(action, requiredOs, versionRegex)); rules.append(OsRule::create(action, requiredOs, versionRegex));
} }
return rules;
} }
QJsonObject ImplicitRule::toJson() QJsonObject ImplicitRule::toJson()