From: Ben Pfaff Date: Sun, 7 Feb 2021 03:45:58 +0000 (-0800) Subject: spv-light-decoder: Fix check for valid decimal point characters. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abe576e80df1aad6a7e21b0e0654e8c1c42deb80;p=pspp spv-light-decoder: Fix check for valid decimal point characters. Found by cppcheck. Reported by John Darrington. --- diff --git a/src/output/spv/spv-light-decoder.c b/src/output/spv/spv-light-decoder.c index 520cb2b0a0..58b5ddbe02 100644 --- a/src/output/spv/spv-light-decoder.c +++ b/src/output/spv/spv-light-decoder.c @@ -919,7 +919,7 @@ decode_spvlb_table (const struct spvlb_table *in, struct pivot_table **outp) if (epoch >= 1000 && epoch <= 9999) out->settings.epoch = epoch; char decimal = in->formats->y0->decimal; - if (decimal == '.' || decimal == '.') + if (decimal == '.' || decimal == ',') out->settings.decimal = decimal; else {