Commit 394fe12
committed
ext/gettext/gettext.c: check errno after calling bindtextdomain()
Since musl's bindtextdomain() returns NULL when no directory has been
explicitly bound yet (a relatively benign situation), we need to reset
errno before the call and check it afterwards to differentiate between
a real error like ENOMEM and the harmless not-yet-bound case.1 parent e553c0d commit 394fe12
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
195 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
196 | 205 | | |
197 | 206 | | |
198 | 207 | | |
| |||
0 commit comments