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:
Viktor Szakats 2025-03-08 04:25:03 +01:00
parent 8f700cf5f9
commit 2fc8f7a3f7
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -1113,7 +1113,7 @@ CURLcode Curl_gtls_ctx_init(struct gtls_ctx *gctx,
size_t gtls_alpns_count = 0;
bool gtls_session_setup = FALSE;
struct alpn_spec alpns;
CURLcode result;
CURLcode result = CURLE_OK;
int rc;
DEBUGASSERT(gctx);