зеркало из https://github.com/mozilla/gecko-dev.git
Bug 505750 - Fix nsDOMStorage.cpp:CheckSecure code to not mask by IsSecure() result, coverity doesn't like it, r=timeless
This commit is contained in:
Родитель
46761e528c
Коммит
c39a91e397
|
@ -1061,7 +1061,10 @@ PR_STATIC_CALLBACK(PLDHashOperator)
|
|||
CheckSecure(nsSessionStorageEntry* aEntry, void* userArg)
|
||||
{
|
||||
PRBool* secure = (PRBool*)userArg;
|
||||
*secure |= aEntry->mItem->IsSecure();
|
||||
if (aEntry->mItem->IsSecure()) {
|
||||
*secure = PR_TRUE;
|
||||
return PL_DHASH_STOP;
|
||||
}
|
||||
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче