Date: Fri, 3 Apr 2015 17:17:18 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r281034 - stable/9/lib/libc/nls Message-ID: <201504031717.t33HHISD074463@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Fri Apr 3 17:17:17 2015 New Revision: 281034 URL: https://svnweb.freebsd.org/changeset/base/281034 Log: 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. Modified: stable/9/lib/libc/nls/msgcat.c Directory Properties: stable/9/lib/libc/ (props changed) Modified: stable/9/lib/libc/nls/msgcat.c ============================================================================== --- stable/9/lib/libc/nls/msgcat.c Fri Apr 3 17:16:05 2015 (r281033) +++ stable/9/lib/libc/nls/msgcat.c Fri Apr 3 17:17:17 2015 (r281034) @@ -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; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504031717.t33HHISD074463>