From: Frédéric Marchal Date: Mon, 7 Sep 2009 18:54:22 +0000 (+0000) Subject: Simply rewind the stream instead of closing it and reopening it. X-Git-Tag: v2_2_6~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec7b26a510660f8a2c8adef5747ce0b3ae39824f;p=thirdparty%2Fsarg.git Simply rewind the stream instead of closing it and reopening it. --- diff --git a/html.c b/html.c index 3431706..b1c1662 100644 --- a/html.c +++ b/html.c @@ -202,12 +202,7 @@ void htmlrel(void) tnoucache+=my_atoll(wtemp); } - fclose(fp_in); - - if ((fp_in = fopen(arqin, "r")) == 0){ - fprintf(stderr, "SARG: (html4) %s: %s\n",text[45],arqin); - exit(1); - } + rewind(fp_in); if ((fp_ou = fopen(arqou, "w")) == 0){ fprintf(stderr, "SARG: (html5) %s: %s\n",text[45],arqou);