зеркало из https://github.com/mozilla/pjs.git
Bug 180789 nsPrefBranch::GetChildList can call PL_DHashTableEnumerate with an uninitialized gHashTable
r=dbradley sr=dveditz
This commit is contained in:
Родитель
36dd396e4d
Коммит
f00b2c1ec6
|
@ -602,6 +602,12 @@ NS_IMETHODIMP nsPrefBranch::GetChildList(const char *aStartingAt, PRUint32 *aCou
|
|||
NS_ENSURE_ARG_POINTER(aCount);
|
||||
NS_ENSURE_ARG_POINTER(aChildArray);
|
||||
|
||||
if (!gHashTable.ops) {
|
||||
*aChildArray = nsnull;
|
||||
*aCount = 0;
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
// this will contain a list of all the pref name strings
|
||||
// allocate on the stack for speed
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче