spv-light-decoder: Fix check for valid decimal point characters.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 7 Feb 2021 03:45:58 +0000 (19:45 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 7 Feb 2021 03:45:58 +0000 (19:45 -0800)
Found by cppcheck.
Reported by John Darrington.

src/output/spv/spv-light-decoder.c

index 520cb2b0a066698fe6263acb2f0894a84888306b..58b5ddbe0294019cf9988c9ec1c1fb402fb12fdb 100644 (file)
@@ -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
     {