mirror of
https://github.com/mirror/wget.git
synced 2025-01-15 06:40:21 +08:00
* src/http.c (check_file_output): Replace asprintf by aprint
This commit is contained in:
parent
d505714a32
commit
49af22ca94
@ -2263,8 +2263,7 @@ check_file_output (struct url *u, struct http_stat *hs,
|
|||||||
hs->temporary = opt.delete_after || opt.spider || !acceptable (hs->local_file);
|
hs->temporary = opt.delete_after || opt.spider || !acceptable (hs->local_file);
|
||||||
if (hs->temporary)
|
if (hs->temporary)
|
||||||
{
|
{
|
||||||
char *tmp = NULL;
|
char *tmp = aprintf ("%s.tmp", hs->local_file);
|
||||||
asprintf (&tmp, "%s.tmp", hs->local_file);
|
|
||||||
xfree (hs->local_file);
|
xfree (hs->local_file);
|
||||||
hs->local_file = tmp;
|
hs->local_file = tmp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user