summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-11 16:04:56 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-11 22:45:23 +0100
commit4c0206f90bd0e15acc1031c2011d8a8903d2c911 (patch)
treea696829b826ee2efca3810be0adf9f4c6d14b6da
parent985c184d5b5f7bd442af462cfde5f7f597122b13 (diff)
downloadcurl-4c0206f90bd0e15acc1031c2011d8a8903d2c911.tar.gz
http: remove superfluous NULL assign
Closes #6727
-rw-r--r--lib/http.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c
index 5823bb9b4..43eb840de 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 */