зеркало из https://github.com/mozilla/pjs.git
Bug 211265 Log doesn't check the return value of PL_DHashTableInit
r=darin sr=darin
This commit is contained in:
Родитель
adf9db1b56
Коммит
e714c98630
|
@ -163,8 +163,9 @@ static int initialized = 0;
|
|||
addr = (void*) ((unsigned) addr - 5);
|
||||
|
||||
if (!initialized) {
|
||||
initialized = 1;
|
||||
PL_DHashTableInit(&Calls, &Ops, 0, sizeof(CallEntry), 16);
|
||||
initialized = PL_DHashTableInit(&Calls, &Ops, 0, sizeof(CallEntry), 16);
|
||||
if (!initialized)
|
||||
return;
|
||||
}
|
||||
|
||||
CallEntry* entry
|
||||
|
@ -291,8 +292,9 @@ ListCounts(PLDHashTable* table, PLDHashEntryHdr* hdr,
|
|||
return PL_DHASH_NEXT;
|
||||
static int modInitialized = 0;
|
||||
if (!modInitialized) {
|
||||
modInitialized = 1;
|
||||
PL_DHashTableInit(&Modules, &ModOps, 0, sizeof(ModulesEntry), 16);
|
||||
modInitialized = PL_DHashTableInit(&Modules, &ModOps, 0, sizeof(ModulesEntry), 16);
|
||||
if (!modInitialized)
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
ModulesEntry* mod
|
||||
|
|
Загрузка…
Ссылка в новой задаче