1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

warc: Avoid out-of-scope variable usage

This commit is contained in:
Giuseppe Scrivano 2014-06-29 11:22:44 +02:00
parent ebda24eb69
commit e2c8436e17
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-06-29 Giuseppe Scrivano <gscrivan@redhat.com>
* warc.c (warc_write_date_header): Avoid out-of-scope variable usage.
2014-06-28 Giuseppe Scrivano <gscrivan@redhat.com>
* Makefile.am (wget_SOURCES): Remove space-tab indentation.

View File

@ -386,9 +386,9 @@ warc_write_end_record (void)
static bool
warc_write_date_header (const char *timestamp)
{
char current_timestamp[21];
if (timestamp == NULL)
{
char current_timestamp[21];
warc_timestamp (current_timestamp);
timestamp = current_timestamp;
}