Bug 1626570 - Improve handling of copying arrays in toolkit/components/url-classifier/. r=gcp

Differential Revision: https://phabricator.services.mozilla.com/D72328
This commit is contained in:
Simon Giesecke
2020-04-30 09:40:24 +00:00
parent 68f9cf55c9
commit c75f3b56b2
6 changed files with 13 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ nsresult ProtocolParserV2::ProcessControl(bool* aDone) {
}
} else if (line.EqualsLiteral("r:pleasereset")) {
PARSER_LOG(("All tables will be reset."));
mTablesToReset = mRequestedTables;
mTablesToReset = mRequestedTables.Clone();
} else if (StringBeginsWith(line, NS_LITERAL_CSTRING("u:"))) {
rv = ProcessForward(line);
NS_ENSURE_SUCCESS(rv, rv);