mirror of
https://github.com/curl/curl.git
synced 2026-07-30 01:48:04 +03:00
tool: Moved --stderr to the global config
This commit is contained in:
parent
1f07718123
commit
5513bbd5c3
12 changed files with 69 additions and 68 deletions
|
|
@ -163,7 +163,7 @@ int formparse(struct OperationConfig *config,
|
|||
/* Allocate the contents */
|
||||
contents = strdup(contp+1);
|
||||
if(!contents) {
|
||||
fprintf(config->errors, "out of memory\n");
|
||||
fprintf(config->global->errors, "out of memory\n");
|
||||
return 1;
|
||||
}
|
||||
contp = contents;
|
||||
|
|
@ -277,7 +277,7 @@ int formparse(struct OperationConfig *config,
|
|||
}
|
||||
forms = malloc((count+1)*sizeof(struct curl_forms));
|
||||
if(!forms) {
|
||||
fprintf(config->errors, "Error building form post!\n");
|
||||
fprintf(config->global->errors, "Error building form post!\n");
|
||||
Curl_safefree(contents);
|
||||
FreeMultiInfo(&multi_start, &multi_current);
|
||||
return 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue