mirror of
https://github.com/mirror/wget.git
synced 2025-01-04 01:10:28 +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
|
||||
(i.e. due to opt.content_disposition). */
|
||||
if (hstat.local_file)
|
||||
*local_file = xstrdup (hstat.local_file);
|
||||
{
|
||||
*local_file = hstat.local_file;
|
||||
hstat.local_file = NULL;
|
||||
}
|
||||
}
|
||||
free_hstat (&hstat);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user