diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-05-11 23:40:58 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-21 23:21:47 +0200 |
commit | cb529b713f4882ac65a074ae8d87faa41d19168e (patch) | |
tree | b9f23f33a817107127020630c7b9b5764e8685f0 /lib/vtls/schannel.c | |
parent | f3d836b73601fc6d14cb917e1cd72f43b9056dff (diff) | |
download | curl-cb529b713f4882ac65a074ae8d87faa41d19168e.tar.gz |
checksrc: make sure sizeof() is used *with* parentheses
... and unify the source code to adhere.
Closes #2563
Diffstat (limited to 'lib/vtls/schannel.c')
-rw-r--r-- | lib/vtls/schannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index e00bde2ca..edc2459b7 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -1849,7 +1849,7 @@ static CURLcode pkp_pin_peer_pubkey(struct connectdata *conn, int sockindex, x509_der = (const char *)pCertContextServer->pbCertEncoded; x509_der_len = pCertContextServer->cbCertEncoded; - memset(&x509_parsed, 0, sizeof x509_parsed); + memset(&x509_parsed, 0, sizeof(x509_parsed)); if(Curl_parseX509(&x509_parsed, x509_der, x509_der + x509_der_len)) break; |