Fix error checking for setlocale()
This commit is contained in:
parent
e748292d00
commit
ae68e75e86
|
@ -454,7 +454,7 @@ int main(int argc, char * argv[])
|
||||||
int o;
|
int o;
|
||||||
Run * run;
|
Run * run;
|
||||||
|
|
||||||
if(setlocale(LC_ALL, "") != 0)
|
if(setlocale(LC_ALL, "") == NULL)
|
||||||
fprintf(stderr, PROGNAME ": %s: %s\n", "setlocale",
|
fprintf(stderr, PROGNAME ": %s: %s\n", "setlocale",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user