From: Rich Felker Date: Sun, 29 Jan 2017 05:11:23 +0000 (-0500) Subject: fix bindtextdomain logic error deactivating other domains X-Git-Tag: v1.1.17~109 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01e6bbece2bdcac243cdb8dff6916f2bb80a19e1;p=oweals%2Fmusl.git fix bindtextdomain logic error deactivating other domains this loop was only supposed to deactivate other bindings for the same text domain name, but due to copy-and-paste error, deactivated all other bindings. patch by He X. --- diff --git a/src/locale/dcngettext.c b/src/locale/dcngettext.c index a5ff8475..e48c50f0 100644 --- a/src/locale/dcngettext.c +++ b/src/locale/dcngettext.c @@ -74,7 +74,7 @@ char *bindtextdomain(const char *domainname, const char *dirname) a_store(&p->active, 1); for (q=bindings; q; q=q->next) { - if (!strcmp(p->domainname, domainname) && q != p) + if (!strcmp(q->domainname, domainname) && q != p) a_store(&q->active, 0); }