summaryrefslogtreecommitdiff
path: root/src/warc.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:22 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:22 +0900
commitdfd19f19c019e044f97e46081a6960614c0cf3f9 (patch)
tree51235119408ad6039f4a12286aba64e25176254b /src/warc.c
parentbe7885cb38b145fc4361200b3351fc2c79e35f3c (diff)
downloadwget-dfd19f19c019e044f97e46081a6960614c0cf3f9.tar.gz
wget-dfd19f19c019e044f97e46081a6960614c0cf3f9.tar.bz2
wget-dfd19f19c019e044f97e46081a6960614c0cf3f9.zip
Imported Upstream version 1.19.5upstream/1.19.5
Diffstat (limited to 'src/warc.c')
-rw-r--r--src/warc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/warc.c b/src/warc.c
index 9cbbca3..3482cf3 100644
--- a/src/warc.c
+++ b/src/warc.c
@@ -1240,9 +1240,15 @@ warc_close (void)
warc_write_metadata ();
*warc_current_warcinfo_uuid_str = 0;
fclose (warc_current_file);
+ warc_current_file = NULL;
}
+
if (warc_current_cdx_file != NULL)
- fclose (warc_current_cdx_file);
+ {
+ fclose (warc_current_cdx_file);
+ warc_current_cdx_file = NULL;
+ }
+
if (warc_log_fp != NULL)
{
fclose (warc_log_fp);