summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkokke <spam@rowdy.dk>2021-03-05 22:18:31 +0100
committerJay Satiro <raysatiro@yahoo.com>2021-03-05 17:09:10 -0500
commit86338ca69837661b1608d95bde0bd0e427a2e0b7 (patch)
treee5a11266642d7ef401b07a31b769f658b4c7ec93 /lib
parentbde786b5d133ffef91390388ccf4dac4885a0629 (diff)
downloadcurl-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.c2
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,