]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
numfmt: pacify Sun C 5.14
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Nov 2016 02:54:03 +0000 (18:54 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Nov 2016 02:54:32 +0000 (18:54 -0800)
* src/numfmt.c (main): Don't implicitly coerce pointer in bool
initializer.  Although it's portable C99 code, it's confusing.

src/numfmt.c

index a78f30732bc0e490678cad4cf429dceb57c487ab..e4518160a1e7d078a88376a692c4c99574991148 100644 (file)
@@ -1443,7 +1443,7 @@ main (int argc, char **argv)
 
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
-  locale_ok = setlocale (LC_ALL, "");
+  locale_ok = !!setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);