Bug 1594730 - fix silly bug for the background event target; r=KrisWright

The static analysis caught this for me in Bug 1593812, I was just to
dumb to actually apply this change prior to commit.

Differential Revision: https://phabricator.services.mozilla.com/D52170

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nathan Froyd 2019-11-07 16:04:45 +00:00
Родитель 7e5577e2b2
Коммит bc5cca4b95
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -109,7 +109,7 @@ BackgroundEventTarget::IsOnCurrentThreadInfallible() {
NS_IMETHODIMP
BackgroundEventTarget::IsOnCurrentThread(bool* aValue) {
bool value = false;
if (NS_SUCCEEDED(mPool->IsOnCurrentThread(aValue)) && value) {
if (NS_SUCCEEDED(mPool->IsOnCurrentThread(&value)) && value) {
*aValue = value;
return NS_OK;
}