mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Revert unnecessary memset after calloc.
Suggested by: jhb Approved by: dfr (mentor)
This commit is contained in:
parent
26088b9d4d
commit
7014ae09f9
1 changed files with 0 additions and 1 deletions
|
|
@ -67,7 +67,6 @@ name##_getstate(struct name##_state **p) \
|
|||
*p = calloc(1, sizeof(**p)); \
|
||||
if (*p == NULL) \
|
||||
return (ENOMEM); \
|
||||
memset(*p, 0, sizeof(**p)); \
|
||||
rv = _pthread_setspecific(name##_state_key, *p); \
|
||||
if (rv != 0) { \
|
||||
free(*p); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue