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:
kokke 2021-03-05 22:18:31 +01:00 committed by Jay Satiro
parent bde786b5d1
commit 86338ca698
1 changed files with 0 additions and 2 deletions

View File

@ -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,