summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-02 22:18:21 +0000
committerJim Meyering <jim@meyering.net>2000-12-02 22:18:21 +0000
commitd661be38ed6d068779b9a434bdaa2b23a08fcb8c (patch)
treee1ceb8dd5e9c7f73d6c9ad4464251a7a8b5ac24d /src
parent69e30c7f2a275cd29d1c997a13b85efe48fedc64 (diff)
downloadcoreutils-d661be38ed6d068779b9a434bdaa2b23a08fcb8c.tar.xz
(valid_format): Move pre-increment to a separate statement to avoid a warning.
Diffstat (limited to 'src')
-rw-r--r--src/seq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/seq.c b/src/seq.c
index eb48d870a..001278fe8 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -147,7 +147,10 @@ valid_format (const char *fmt)
fmt += strspn (fmt, "0123456789");
if (*fmt == '.')
- fmt += strspn (++fmt, "0123456789");
+ {
+ ++fmt;
+ fmt += strspn (fmt, "0123456789");
+ }
}
if (!(*fmt == 'e' || *fmt == 'f' || *fmt == 'g'))