mirror of
https://github.com/moparisthebest/curl
synced 2025-01-10 13:38:04 -05:00
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
This commit is contained in:
parent
bde786b5d1
commit
86338ca698
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user