From d75266b4fd3dbfee88d81d3e87a2a9366c5d5cbb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 27 Feb 2014 19:01:59 -0800 Subject: [PATCH] maint: dfa: pass NULL, not 0, as 2nd arg to setlocale * src/dfa.c (using_simple_locale): Use NULL, not 0. --- src/dfa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfa.c b/src/dfa.c index f4590da..4708895 100644 --- a/src/dfa.c +++ b/src/dfa.c @@ -801,7 +801,7 @@ using_simple_locale (void) static int unibyte_c = -1; if (unibyte_c < 0) { - char *locale = setlocale (LC_ALL, 0); + char *locale = setlocale (LC_ALL, NULL); unibyte_c = (locale && (STREQ (locale, "C") || STREQ (locale, "POSIX"))); } -- 1.9.0