Bug 1246301 - Incorrectly parsed value for update interval in shavar response. r=francois

MozReview-Commit-ID: Ks84KmA5uKJ
This commit is contained in:
dimi
2016-03-25 09:50:44 +08:00
parent 79f6bb0214
commit af16ef96be

View File

@@ -130,7 +130,7 @@ ProtocolParser::ProcessControl(bool* aDone)
} else if (StringBeginsWith(line, NS_LITERAL_CSTRING("n:"))) {
if (PR_sscanf(line.get(), "n:%d", &mUpdateWait) != 1) {
PARSER_LOG(("Error parsing n: '%s' (%d)", line.get(), mUpdateWait));
mUpdateWait = 0;
return NS_ERROR_FAILURE;
}
} else if (line.EqualsLiteral("r:pleasereset")) {
mResetRequested = true;