Another place where malloc is expected to return zero'ed storage.

(Found with phkmalloc/2 (TNG!) send me email if you want a copy.)
This commit is contained in:
Poul-Henning Kamp 1995-10-07 17:53:30 +00:00
parent d16b647e7f
commit 3dff9b4169

View File

@ -101,6 +101,7 @@ int value;
item = &firstentry(second);
this = (struct thing *) malloc(sizeof *this);
memset((void*)this,0,sizeof *this);
this->next = *item;
*item = this;
this->value = value;