src/libpspp/float-format.c (extract_hex): Remove useless assignment.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 10 Apr 2021 06:03:26 +0000 (08:03 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 10 Apr 2021 06:28:41 +0000 (08:28 +0200)
Found by cppcheck.

src/libpspp/float-format.c

index 03f9411613938addd72905bb1dae5ab48c28760d..623d299ca6e901c49e86fa22a7bacc7c52061705 100644 (file)
@@ -480,11 +480,7 @@ extract_hex (const char *s, struct fp *fp)
           if (fp->fraction == 0)
             fp->class = ZERO;
           else if (*s == 'p')
-            {
-              char *tail;
-              fp->exponent += strtol (s + 1, &tail, 10);
-              s = tail;
-            }
+            fp->exponent += strtol (s + 1, NULL, 10);
         }
     }
 }