diff options
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index 64c647be2..34c17c6b6 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -743,6 +743,10 @@ static CURLcode easy_perform(struct Curl_easy *data, bool events) CURLcode result = CURLE_OK; SIGPIPE_VARIABLE(pipe_st); + if(data->set.errorbuffer) + /* clear this as early as possible */ + data->set.errorbuffer[0] = 0; + if(!data) return CURLE_BAD_FUNCTION_ARGUMENT; |