mirror of
https://github.com/curl/curl.git
synced 2026-05-14 02:06:23 +03:00
vtls: fix potentially uninitialized local variable warnings
Follow-up from a4a5e438ae
Closes #11310
This commit is contained in:
parent
c92b7228c5
commit
bc1e405ede
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue