From abe576e80df1aad6a7e21b0e0654e8c1c42deb80 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 6 Feb 2021 19:45:58 -0800 Subject: [PATCH] spv-light-decoder: Fix check for valid decimal point characters. Found by cppcheck. Reported by John Darrington. --- src/output/spv/spv-light-decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2