svn commit: r192976 - head/lib/libc/include

Zachary Loafman zml at FreeBSD.org
Thu May 28 15:02:22 UTC 2009


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);					\


More information about the svn-src-head mailing list