From a98625f8c05316bd7dd13fcf5fc4cbcd46454ecc Mon Sep 17 00:00:00 2001 From: bdrewery Date: Fri, 3 Apr 2015 17:17:17 +0000 Subject: [PATCH] MFC r278530: When catopen(3) returns an error, it caches the result of that error from r202992. The refcount on the cache entry is not initialized, so any attempt to clean the cache will skip over this item since it likely has a >0 value. This change is currently a NOP. git-svn-id: svn://svn.freebsd.org/base/stable/9@281034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libc/nls/msgcat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c index 44b144084..cc36baf75 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->refcount = 0; \ np->lang = (l == NULL) ? NULL : \ strdup(l); \ np->caterrno = e; \ -- 2.45.0