aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-03-20 08:18:55 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-03-20 08:18:55 +0000
commit85bebbc156e23d6029e0824d782260830025a611 (patch)
tree07fe3d01ea14c9b892b8fb45eeb8f02b0bb38a8e /lib
parentcfcd9a45b56e600cb1584b5773fd3f6cccb2a899 (diff)
downloadsrc-85bebbc156e23d6029e0824d782260830025a611.tar.gz
src-85bebbc156e23d6029e0824d782260830025a611.zip
According to C99 decimal_point can't be empty
Notes
Notes: svn path=/head/; revision=112427
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/strfmon.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strfmon.c b/lib/libc/stdlib/strfmon.c
index 6bbf540338f4..37200ad5f1ab 100644
--- a/lib/libc/stdlib/strfmon.c
+++ b/lib/libc/stdlib/strfmon.c
@@ -501,11 +501,8 @@ __format_grouped_double(double value, int *flags,
grouping = lc->mon_grouping;
decimal_point = *lc->mon_decimal_point;
- if (decimal_point == '\0') {
+ if (decimal_point == '\0')
decimal_point = *lc->decimal_point;
- if (decimal_point == '\0')
- decimal_point = '.';
- }
thousands_sep = *lc->mon_thousands_sep;
if (thousands_sep == '\0')
thousands_sep = *lc->thousands_sep;