aboutsummaryrefslogtreecommitdiff
path: root/src/tool_formparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_formparse.c')
-rw-r--r--src/tool_formparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_formparse.c b/src/tool_formparse.c
index 5198822fd..d8fc8fd6c 100644
--- a/src/tool_formparse.c
+++ b/src/tool_formparse.c
@@ -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;