From: Daniel Stenberg Date: Thu, 11 Mar 2021 15:04:56 +0000 (+0100) Subject: http: remove superfluous NULL assign X-Git-Tag: curl-7_76_0~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c0206f90bd0e15acc1031c2011d8a8903d2c911;p=thirdparty%2Fcurl.git http: remove superfluous NULL assign Closes #6727 --- diff --git a/lib/http.c b/lib/http.c index 5823bb9b42..43eb840de3 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3023,10 +3023,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done) if(!data->state.aptr.accept_encoding) return CURLE_OUT_OF_MEMORY; } - else { + else Curl_safefree(data->state.aptr.accept_encoding); - data->state.aptr.accept_encoding = NULL; - } #ifdef HAVE_LIBZ /* we only consider transfer-encoding magic if libz support is built-in */