mirror of
https://github.com/curl/curl.git
synced 2026-08-04 13:46:26 +03:00
tool: move the error buffer to the per transfer struct
To avoid having to alloc or manage it separately. Closes #18442
This commit is contained in:
parent
54f1ef05d6
commit
84c92f7113
4 changed files with 10 additions and 27 deletions
|
|
@ -361,8 +361,8 @@ static int writeString(FILE *stream, const struct writeoutvar *wovar,
|
|||
break;
|
||||
case VAR_ERRORMSG:
|
||||
if(per_result) {
|
||||
strinfo = (per->errorbuffer && per->errorbuffer[0]) ?
|
||||
per->errorbuffer : curl_easy_strerror(per_result);
|
||||
strinfo = (per->errorbuffer[0]) ? per->errorbuffer :
|
||||
curl_easy_strerror(per_result);
|
||||
valid = true;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue