summaryrefslogtreecommitdiff
path: root/lib/nl_langinfo.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-16 13:00:40 +0200
committerBruno Haible <bruno@clisp.org>2020-08-16 13:00:40 +0200
commit28b15af95870f363a93a8d53c7a975b014ba7dee (patch)
tree7da95b29c966ab090225c903dd48cb0e343884a0 /lib/nl_langinfo.c
parentff3e4348a8309e81637414ac72584196b6438901 (diff)
downloadgnulib-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.c2
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, '.');