summaryrefslogtreecommitdiff
path: root/lib/libc/locale/lnumeric.c
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2001-02-11 15:07:26 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2001-02-11 15:07:26 +0000
commit9040b756ddf6cbbe767131ce94515b0d5f46016b (patch)
treeb958f3b252b84e7e5cebbbd3deb84ca831e232cb /lib/libc/locale/lnumeric.c
parentd888fc4e737af84dd01cea8a7e529e101b1e06d5 (diff)
Notes
Diffstat (limited to 'lib/libc/locale/lnumeric.c')
-rw-r--r--lib/libc/locale/lnumeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c
index 875406978f92..3fea4db96cae 100644
--- a/lib/libc/locale/lnumeric.c
+++ b/lib/libc/locale/lnumeric.c
@@ -56,7 +56,7 @@ __numeric_load_locale(const char *name) {
ret = __part_load_locale(name, &_numeric_using_locale,
numeric_locale_buf, "LC_NUMERIC", LCNUMERIC_SIZE,
(const char **)&_numeric_locale);
- if (!ret)
+ if (!ret && _numeric_using_locale)
_numeric_locale.grouping =
__fix_locale_grouping_str(_numeric_locale.grouping);
return ret;