]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Simply rewind the stream instead of closing it and reopening it.
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 7 Sep 2009 18:54:22 +0000 (18:54 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 7 Sep 2009 18:54:22 +0000 (18:54 +0000)
html.c

diff --git a/html.c b/html.c
index 3431706b3f0a9b2a3ba7de0b5f32678b25756c38..b1c1662a474ec52bbaf84ea75efe175adec36240 100644 (file)
--- 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);