mirror of
https://github.com/fluencelabs/musl
synced 2025-05-25 13:41:32 +00:00
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.
This commit is contained in:
parent
6894f84726
commit
01e6bbece2
@ -74,7 +74,7 @@ char *bindtextdomain(const char *domainname, const char *dirname)
|
|||||||
a_store(&p->active, 1);
|
a_store(&p->active, 1);
|
||||||
|
|
||||||
for (q=bindings; q; q=q->next) {
|
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);
|
a_store(&q->active, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user