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:
Honza Bambas 2009-08-17 18:42:53 +02:00
Родитель 46761e528c
Коммит c39a91e397
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -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;
}