svn commit: r244358 - head/lib/libc/nls

Eitan Adler eadler at FreeBSD.org
Mon Dec 17 12:57:37 UTC 2012


Author: eadler
Date: Mon Dec 17 12:57:36 2012
New Revision: 244358
URL: http://svnweb.freebsd.org/changeset/base/244358

Log:
  Fix warning from valgrind when a failed entry is tested.
  
  PR:		kern/173008
  Submitted by:	Zhihao Yuan <lichray at gmail.com>
  Reviewed by:	gabor
  Approved by:	cperciva (implicit)
  MFC after:	1 week

Modified:
  head/lib/libc/nls/msgcat.c

Modified: head/lib/libc/nls/msgcat.c
==============================================================================
--- head/lib/libc/nls/msgcat.c	Mon Dec 17 12:55:01 2012	(r244357)
+++ head/lib/libc/nls/msgcat.c	Mon Dec 17 12:57:36 2012	(r244358)
@@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$");
 				  if (np != NULL) {				\
 				  	np->name = strdup(n);			\
 					np->path = NULL;			\
+					np->catd = NLERR;			\
 					np->lang = (l == NULL) ? NULL :		\
 					    strdup(l);				\
 					np->caterrno = e;			\


More information about the svn-src-head mailing list