commit | f5309fc4ffa2ee2bf562e18eef3e16e1c22dfb66 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Mon Aug 21 22:04:23 2017 +1000 |
committer | Damien George <damien.p.george@gmail.com> | Mon Aug 21 22:04:23 2017 +1000 |
tree | 9d36c201b0a15d61caba32994289072b76e6407a | |
parent | 103ae43f95313a82674d45a2b654528d5da89435 [diff] [blame] |
py/formatfloat: Don't post-increment variable that won't be used again.
diff --git a/py/formatfloat.c b/py/formatfloat.c index 4130e8b..35cd5d5 100644 --- a/py/formatfloat.c +++ b/py/formatfloat.c
@@ -118,7 +118,7 @@ *s++ = '?'; } if (buf_size >= 1) { - *s++ = '\0'; + *s = '\0'; } return buf_size >= 2; }