summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authorzml <zml@FreeBSD.org>2009-05-28 15:02:21 +0000
committerzml <zml@FreeBSD.org>2009-05-28 15:02:21 +0000
commitcb88d2ce89fa060eddcf4483998c87d969adb54f (patch)
treec6ed106f0aaa2e33e037499fac5123f13412db43 /lib/libc/include
parente329742030258d89216edb4a684517d63891b2ca (diff)
downloadFreeBSD-src-cb88d2ce89fa060eddcf4483998c87d969adb54f.zip
FreeBSD-src-cb88d2ce89fa060eddcf4483998c87d969adb54f.tar.gz
Revert unnecessary memset after calloc.
Suggested by: jhb Approved by: dfr (mentor)
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/nss_tls.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/include/nss_tls.h b/lib/libc/include/nss_tls.h
index 6253ec6..13ab367 100644
--- a/lib/libc/include/nss_tls.h
+++ b/lib/libc/include/nss_tls.h
@@ -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); \
OpenPOWER on IntegriCloud