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:
parent
ebda24eb69
commit
e2c8436e17
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user