diff options
author | kokke <spam@rowdy.dk> | 2021-03-05 22:18:31 +0100 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-03-05 17:09:10 -0500 |
commit | 86338ca69837661b1608d95bde0bd0e427a2e0b7 (patch) | |
tree | e5a11266642d7ef401b07a31b769f658b4c7ec93 /lib | |
parent | bde786b5d133ffef91390388ccf4dac4885a0629 (diff) | |
download | curl-86338ca69837661b1608d95bde0bd0e427a2e0b7.tar.gz |
c-hyper: Remove superfluous pointer check
`n` pointer is never NULL once set. Found by static analysis.
Ref: https://github.com/curl/curl/issues/6696
Closes https://github.com/curl/curl/pull/6697
Diffstat (limited to 'lib')
-rw-r--r-- | lib/c-hyper.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 8b4abd37f..c3a16cf82 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -464,8 +464,6 @@ CURLcode Curl_hyper_header(struct Curl_easy *data, hyper_headers *headers, else linelen = 2; /* CRLF ending */ linelen += (p - n); - if(!n) - return CURLE_BAD_FUNCTION_ARGUMENT; vlen = p - v; if(HYPERE_OK != hyper_headers_add(headers, (uint8_t *)n, nlen, |