Pass the correct size to memset().
PR: bin/128094 Submitted by: Henning Petersen MFC after: 1 week
This commit is contained in:
parent
91112f5ed1
commit
2fa9397b04
@ -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