зеркало из https://github.com/mozilla/pjs.git
[Bug 333389] sftk_NewAttribute should not crash when so is NULL [@ sftk_NewAttribute]. r=nelson
This commit is contained in:
Родитель
f4d975da42
Коммит
deecb18bef
|
@ -67,6 +67,7 @@ sftk_NewAttribute(SFTKObject *object,
|
||||||
if (so == NULL) {
|
if (so == NULL) {
|
||||||
/* allocate new attribute in a buffer */
|
/* allocate new attribute in a buffer */
|
||||||
PORT_Assert(0);
|
PORT_Assert(0);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* We attempt to keep down contention on Malloc and Arena locks by
|
* We attempt to keep down contention on Malloc and Arena locks by
|
||||||
|
|
Загрузка…
Ссылка в новой задаче