mirror of
https://github.com/mirror/wget.git
synced 2025-01-06 10:20:56 +08:00
* src/http.c (http_loop): Avoid unneeded strdup
This commit is contained in:
parent
f747eea059
commit
8010507d73
@ -4868,7 +4868,10 @@ exit:
|
|||||||
/* Bugfix: Prevent SIGSEGV when hstat.local_file was left NULL
|
/* Bugfix: Prevent SIGSEGV when hstat.local_file was left NULL
|
||||||
(i.e. due to opt.content_disposition). */
|
(i.e. due to opt.content_disposition). */
|
||||||
if (hstat.local_file)
|
if (hstat.local_file)
|
||||||
*local_file = xstrdup (hstat.local_file);
|
{
|
||||||
|
*local_file = hstat.local_file;
|
||||||
|
hstat.local_file = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
free_hstat (&hstat);
|
free_hstat (&hstat);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user