]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Write HTML trailer before closing the file.
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 25 Jun 2009 12:26:12 +0000 (12:26 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 25 Jun 2009 12:26:12 +0000 (12:26 +0000)
index.c

diff --git a/index.c b/index.c
index 7a4adf833e7e04132b7343f6b8b759f93ee8b305..ebeb239638a8afa3c6667ce2e8a2c10c9351044a 100644 (file)
--- a/index.c
+++ b/index.c
@@ -315,8 +315,8 @@ void make_index()
                fprintf(fp_ou3,"<tr><td class=\"data2\"><a href=\"%s\">%s %s %s</a></td></tr>\n",warea,tmp4,nmonth,warea);
             }
             if(fp_tmp3) fclose(fp_tmp3);
-            if(fp_ou3) fclose(fp_ou3);
             write_html_trailer(fp_ou3);
+            if(fp_ou3) fclose(fp_ou3);
             unlink(tmp6);
          }
          write_html_trailer(fp_ou2);