зеркало из https://github.com/mozilla/gecko-dev.git
bug 859646 - fix b2g code that checks what infallible TArray::EnsureLengthAtleast() returns r=jlebar
This commit is contained in:
Родитель
ed21beb1ff
Коммит
9d995f7517
|
@ -480,10 +480,7 @@ SystemWorkerManager::RegisterRilWorker(unsigned int aClientId,
|
|||
{
|
||||
NS_ENSURE_TRUE(!JSVAL_IS_PRIMITIVE(aWorker), NS_ERROR_UNEXPECTED);
|
||||
|
||||
if (!mRilConsumers.EnsureLengthAtLeast(aClientId + 1)) {
|
||||
NS_WARNING("Failed to ensure minimum length of mRilConsumers");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
mRilConsumers.EnsureLengthAtLeast(aClientId + 1);
|
||||
|
||||
if (mRilConsumers[aClientId]) {
|
||||
NS_WARNING("RilConsumer already registered");
|
||||
|
|
Загрузка…
Ссылка в новой задаче