From: Jim Meyering Date: Fri, 3 Mar 2000 08:24:16 +0000 (+0000) Subject: (fillbuf): Move declaration of local, cc, into scope of X-Git-Tag: TEXTUTILS-2_0e~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c43f8c612ac215126cea8939485c652b6b1b8d4;p=thirdparty%2Fcoreutils.git (fillbuf): Move declaration of local, cc, into scope of `while' loop where it's used. --- diff --git a/src/sort.c b/src/sort.c index e96f0db195..2b064db57b 100644 --- a/src/sort.c +++ b/src/sort.c @@ -545,8 +545,6 @@ initbuf (struct buffer *buf, int alloc) static int fillbuf (struct buffer *buf, FILE *fp) { - int cc; - if (buf->used != buf->left) { memmove (buf->buf, buf->buf + buf->used - buf->left, buf->left); @@ -555,6 +553,7 @@ fillbuf (struct buffer *buf, FILE *fp) while (!feof (fp)) { + int cc; if (buf->used == buf->alloc) { buf->alloc *= 2;