[Bug 333389] sftk_NewAttribute should not crash when so is NULL [@ sftk_NewAttribute]. r=nelson

This commit is contained in:
alexei.volkov.bugs%sun.com 2006-04-26 19:18:00 +00:00
Родитель f4d975da42
Коммит deecb18bef
1 изменённых файлов: 1 добавлений и 0 удалений

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

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