]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(valid_format): Move pre-increment to a separate statement to avoid a warning.
authorJim Meyering <jim@meyering.net>
Sat, 2 Dec 2000 22:18:21 +0000 (22:18 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Dec 2000 22:18:21 +0000 (22:18 +0000)
src/seq.c

index eb48d870a1cd186d1f1c79bf27b4a973b7bf7840..001278fe82b20cbaa01e508bb0090c1906bdf172 100644 (file)
--- 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'))