mirror of
https://github.com/curl/curl.git
synced 2025-09-10 06:02:42 +03:00
gtls: fix uninitialized variable
Fix uninitialized variable (warning by MSVC): ``` lib\vtls\gtls.c(1207,1): error C2220: the following warning is treated as an error lib\vtls\gtls.c(1207,1): warning C4701: potentially uninitialized local variable 'result' used ``` Ref: https://github.com/curl/curl/actions/runs/13733139148/job/38413553053#step:9:31 Closes #16625
This commit is contained in:
parent
8f700cf5f9
commit
2fc8f7a3f7
|
@ -1113,7 +1113,7 @@ CURLcode Curl_gtls_ctx_init(struct gtls_ctx *gctx,
|
||||||
size_t gtls_alpns_count = 0;
|
size_t gtls_alpns_count = 0;
|
||||||
bool gtls_session_setup = FALSE;
|
bool gtls_session_setup = FALSE;
|
||||||
struct alpn_spec alpns;
|
struct alpn_spec alpns;
|
||||||
CURLcode result;
|
CURLcode result = CURLE_OK;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
DEBUGASSERT(gctx);
|
DEBUGASSERT(gctx);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user