From 5513bbd5c38e5128dd943c28417da29f2c6f9101 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 1 Mar 2014 13:00:31 +0000 Subject: tool: Moved --stderr to the global config --- src/tool_formparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool_formparse.c') 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; -- cgit v1.2.3