]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: remove superfluous NULL assign
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2021 15:04:56 +0000 (16:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2021 21:45:23 +0000 (22:45 +0100)
Closes #6727

lib/http.c

index 5823bb9b42299d7be7cbd57ffb68b62592abcc0b..43eb840de3f5f43c7d1bad8eef40c27237d69e2d 100644 (file)
@@ -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 */