* src/http.c (http_loop): Avoid unneeded strdup

This commit is contained in:
Tim Rühsen 2020-02-27 11:35:50 +01:00
parent f747eea059
commit 8010507d73

View File

@ -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);