]> granicus.if.org Git - python/commitdiff
Remove an unnecessary variable assignment.
authorBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:35:24 +0000 (20:35 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:35:24 +0000 (20:35 +0000)
Found using Clang's static analyzer.

Python/pystrtod.c

index 909e0210ea2c1e5ce05d62fe02d816b9a4269ef1..16dac81ff61ca6d3c8a5478f46fcaf9c1ca5ec77 100644 (file)
@@ -1005,7 +1005,6 @@ format_float_short(double d, char format_code,
                        /* shouldn't get here: Gay's code should always return
                           something starting with a digit, an 'I',  or 'N' */
                        strncpy(p, "ERR", 3);
-                       p += 3;
                        assert(0);
                }
                goto exit;