зеркало из https://github.com/mozilla/gecko-dev.git
Bug 535990: Null check at PL_DHashTableOperate to avoid crashing r=bsmedberg
This commit is contained in:
Родитель
2bf8037b2b
Коммит
48a4c6bcf7
|
@ -790,7 +790,7 @@ PRBool
|
|||
PREF_PrefIsLocked(const char *pref_name)
|
||||
{
|
||||
PRBool result = PR_FALSE;
|
||||
if (gIsAnyPrefLocked) {
|
||||
if (gIsAnyPrefLocked && gHashTable.ops) {
|
||||
PrefHashEntry* pref = pref_HashTableLookup(pref_name);
|
||||
if (pref && PREF_IS_LOCKED(pref))
|
||||
result = PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче