diff options
author | eadler <eadler@FreeBSD.org> | 2012-12-17 12:57:36 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-12-17 12:57:36 +0000 |
commit | 1c3512cb7668497436ae7b91ce7523c4eee7eaf8 (patch) | |
tree | 681bff6a55212e7797eb982dd54b77af4538fcbe /lib/libc | |
parent | dbdae53685526d308bb50e7a294318fa9c228178 (diff) | |
download | FreeBSD-src-1c3512cb7668497436ae7b91ce7523c4eee7eaf8.zip FreeBSD-src-1c3512cb7668497436ae7b91ce7523c4eee7eaf8.tar.gz |
Fix warning from valgrind when a failed entry is tested.
PR: kern/173008
Submitted by: Zhihao Yuan <lichray@gmail.com>
Reviewed by: gabor
Approved by: cperciva (implicit)
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/nls/msgcat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c index 44b1440..2859916 100644 --- a/lib/libc/nls/msgcat.c +++ b/lib/libc/nls/msgcat.c @@ -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; \ |