mirror of
https://github.com/mirror/wget.git
synced 2025-01-31 14:50:23 +08:00
* src/retr.c (fd_read_body): Check timer before accessing (Coverity #600494)
This commit is contained in:
parent
c65bddc086
commit
9934e228ac
@ -559,10 +559,12 @@ fd_read_body (const char *downloaded_filename, int fd, FILE *out, wgint toread,
|
||||
if (progress)
|
||||
progress_finish (progress, ptimer_read (timer));
|
||||
|
||||
if (elapsed)
|
||||
*elapsed = ptimer_read (timer);
|
||||
if (timer)
|
||||
ptimer_destroy (timer);
|
||||
{
|
||||
if (elapsed)
|
||||
*elapsed = ptimer_read (timer);
|
||||
ptimer_destroy (timer);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBZ
|
||||
if (gzbuf != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user