Date: Thu, 28 May 2009 15:02:21 +0000 (UTC) From: Zachary Loafman <zml@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r192976 - head/lib/libc/include Message-ID: <200905281502.n4SF2LUB041090@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zml Date: Thu May 28 15:02:21 2009 New Revision: 192976 URL: http://svn.freebsd.org/changeset/base/192976 Log: Revert unnecessary memset after calloc. Suggested by: jhb Approved by: dfr (mentor) Modified: head/lib/libc/include/nss_tls.h Modified: head/lib/libc/include/nss_tls.h ============================================================================== --- head/lib/libc/include/nss_tls.h Thu May 28 14:48:10 2009 (r192975) +++ head/lib/libc/include/nss_tls.h Thu May 28 15:02:21 2009 (r192976) @@ -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); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905281502.n4SF2LUB041090>