mirror of
https://github.com/curl/curl.git
synced 2026-07-22 19:57:20 +03:00
http2: fix compiler warning due to uninitialized variable
Prior to this change http2_cfilter_add could return an uninitialized cfilter pointer in an OOM condition. In this case though, the pointer is discarded and not dereferenced so there was no risk of a crash.
This commit is contained in:
parent
6a8d7ef981
commit
fcd1b547d4
1 changed files with 1 additions and 1 deletions
|
|
@ -2247,7 +2247,7 @@ static CURLcode http2_cfilter_add(struct Curl_cfilter **pcf,
|
|||
struct connectdata *conn,
|
||||
int sockindex)
|
||||
{
|
||||
struct Curl_cfilter *cf;
|
||||
struct Curl_cfilter *cf = NULL;
|
||||
struct h2_cf_ctx *ctx;
|
||||
CURLcode result = CURLE_OUT_OF_MEMORY;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue