saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit aac9d4d389441f56dd883b5eec1aea7672797e27
parent 685357843f7c8e34a142392ee9f4ed1fcf517436
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 25 May 2019 20:32:15 +0200

remove unneeded variable

Diffstat:
Msaait.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/saait.c b/saait.c @@ -86,12 +86,12 @@ void catfile(FILE *fpin, const char *ifile, FILE *fpout, const char *ofile) { char buf[READ_BUF_SIZ]; - size_t r, w; + size_t r; while (!feof(fpin)) { if (!(r = fread(buf, 1, sizeof(buf), fpin))) break; - if ((w = fwrite(buf, 1, r, fpout)) != r) + if ((fwrite(buf, 1, r, fpout)) != r) break; if (r != sizeof(buf)) break;