]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - useragent.c
Fix wrong tags label.
[thirdparty/sarg.git] / useragent.c
index 87bd875ce19d07d94fcc07e88bbca1ace9ef718c..b47bfced4973bb79718839403f720e9738f1a789 100644 (file)
@@ -302,8 +302,10 @@ void useragent(void)
    fclose(fp_in);
 
    fputs("</table></div>\n",fp_ht);
-   write_html_trailer(fp_ht);
-   fclose(fp_ht);
+   if (write_html_trailer(fp_ht)<0)
+      debuga(_("Write error in file %s\n"),hfile);
+   if (fclose(fp_ht)==EOF)
+      debuga(_("Failed to close file %s - %s\n"),hfile,strerror(errno));
 
    unlink(tmp3);