diff options
author | ache <ache@FreeBSD.org> | 2003-03-20 08:18:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-03-20 08:18:55 +0000 |
commit | 2bb5966d5b087a64113df73abefb606e2a9cba2e (patch) | |
tree | 07fe3d01ea14c9b892b8fb45eeb8f02b0bb38a8e /lib/libc/stdlib/strfmon.c | |
parent | c8c804af5ebf70fa90009655ea3c095029bc5724 (diff) | |
download | FreeBSD-src-2bb5966d5b087a64113df73abefb606e2a9cba2e.zip FreeBSD-src-2bb5966d5b087a64113df73abefb606e2a9cba2e.tar.gz |
According to C99 decimal_point can't be empty
Diffstat (limited to 'lib/libc/stdlib/strfmon.c')
-rw-r--r-- | lib/libc/stdlib/strfmon.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strfmon.c b/lib/libc/stdlib/strfmon.c index 6bbf5403..37200ad 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; |