MFC r204872: Pass the correct size to memset().
PR: bin/128094
This commit is contained in:
parent
2173958d3e
commit
77d503efb1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=205171
@ -319,7 +319,7 @@ allocsb(void)
|
||||
if ((sb = malloc(sizeof (sbuf_t))) == NULL)
|
||||
nomem();
|
||||
}
|
||||
(void)memset(sb, 0, sizeof (sb));
|
||||
(void)memset(sb, 0, sizeof (*sb));
|
||||
return (sb);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user