Fix error checking for setlocale()

This commit is contained in:
Pierre Pronchery 2015-09-14 23:02:01 -04:00
parent e748292d00
commit ae68e75e86

View File

@ -454,7 +454,7 @@ int main(int argc, char * argv[])
int o;
Run * run;
if(setlocale(LC_ALL, "") != 0)
if(setlocale(LC_ALL, "") == NULL)
fprintf(stderr, PROGNAME ": %s: %s\n", "setlocale",
strerror(errno));
bindtextdomain(PACKAGE, LOCALEDIR);