summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-09-04 03:43:24 +0000
committerimp <imp@FreeBSD.org>2000-09-04 03:43:24 +0000
commit6eee268d676545dbd278a3f78afaca1060845fd3 (patch)
treebe081847e7cb77bdfb4a65824329e28aecc6ac95 /lib/libc
parentb21324d129f87ea6a859ad4ddfa9a825a056d187 (diff)
downloadFreeBSD-src-6eee268d676545dbd278a3f78afaca1060845fd3.zip
FreeBSD-src-6eee268d676545dbd278a3f78afaca1060845fd3.tar.gz
The comparison against 0 should be against LC_ALL. category isn't a
boolean and it is LC_ALL that's special. Someone submitted this to me a long time ago, but I can't find the mail now.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index f5f5fae..daea2bc 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -173,7 +173,7 @@ setlocale(category, locale)
}
}
- if (category)
+ if (category != LC_ALL)
return (loadlocale(category));
for (i = 1; i < _LC_LAST; ++i) {
OpenPOWER on IntegriCloud