From: Jim Meyering Date: Sat, 2 Dec 2000 22:18:21 +0000 (+0000) Subject: (valid_format): Move pre-increment to a separate statement to avoid a warning. X-Git-Tag: TEXTUTILS-2_0_9~14 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d661be38ed6d068779b9a434bdaa2b23a08fcb8c;p=thirdparty%2Fcoreutils.git (valid_format): Move pre-increment to a separate statement to avoid a warning. --- diff --git a/src/seq.c b/src/seq.c index eb48d870a1..001278fe82 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'))