diff options
author | Bruno Haible <bruno@clisp.org> | 2020-08-16 13:00:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-08-16 13:00:40 +0200 |
commit | 28b15af95870f363a93a8d53c7a975b014ba7dee (patch) | |
tree | 7da95b29c966ab090225c903dd48cb0e343884a0 /lib/nl_langinfo.c | |
parent | ff3e4348a8309e81637414ac72584196b6438901 (diff) | |
download | gnulib-28b15af95870f363a93a8d53c7a975b014ba7dee.tar.gz |
Fix "warning: address of array 'locale' will always evaluate to 'true'".
* lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
Diffstat (limited to 'lib/nl_langinfo.c')
-rw-r--r-- | lib/nl_langinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nl_langinfo.c b/lib/nl_langinfo.c index 23299cb8a4..869d8318be 100644 --- a/lib/nl_langinfo.c +++ b/lib/nl_langinfo.c @@ -57,7 +57,7 @@ ctype_codeset (void) codeset = buf; codeset[0] = '\0'; - if (locale && locale[0]) + if (locale[0]) { /* If the locale name contains an encoding after the dot, return it. */ char *dot = strchr (locale, '.'); |