mirror of
https://github.com/mirror/wget.git
synced 2025-01-14 22:30:44 +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);
|
||||
if (hs->temporary)
|
||||
{
|
||||
char *tmp = NULL;
|
||||
asprintf (&tmp, "%s.tmp", hs->local_file);
|
||||
char *tmp = aprintf ("%s.tmp", hs->local_file);
|
||||
xfree (hs->local_file);
|
||||
hs->local_file = tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user