From c6deecd7e9ea7dd10de0934f8ec30952648aba2d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Dec 2019 16:15:37 +0100 Subject: curl: use errorf() better Change series of error outputs to use errorf(). Only errors that are due to mistakes in command line option usage should use helpf(), other types of errors in the tool should rather use errorf(). Closes #4691 --- src/tool_paramhlp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_paramhlp.c') diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index af47516b6..b7a8efbd2 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -606,7 +606,7 @@ CURLcode get_args(struct OperationConfig *config, const size_t i) if(!config->useragent) { config->useragent = my_useragent(); if(!config->useragent) { - helpf(config->global->errors, "out of memory\n"); + errorf(config->global, "out of memory\n"); result = CURLE_OUT_OF_MEMORY; } } -- cgit v1.2.3