vtls: fix potentially uninitialized local variable warnings

Follow-up from a4a5e438ae

Closes #11310
This commit is contained in:
Daniel Stenberg 2023-06-12 23:17:33 +02:00
parent c92b7228c5
commit bc1e405ede
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -893,8 +893,8 @@ CURLcode Curl_pin_peer_pubkey(struct Curl_easy *data,
/* only do this if pinnedpubkey starts with "sha256//", length 8 */
if(strncmp(pinnedpubkey, "sha256//", 8) == 0) {
CURLcode encode;
size_t encodedlen, pinkeylen;
char *encoded, *pinkeycopy, *begin_pos, *end_pos;
size_t encodedlen = 0, pinkeylen;
char *encoded = NULL, *pinkeycopy, *begin_pos, *end_pos;
unsigned char *sha256sumdigest;
if(!Curl_ssl->sha256sum) {