Skip to content

Commit

Permalink
wincng.c: silent some more gcc compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gknauf committed Dec 11, 2014
1 parent df5c61d commit 19f1402
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wincng.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ _libssh2_wincng_asn_decode_bn(unsigned char *pbEncoded,
unsigned char **ppbDecoded,
unsigned long *pcbDecoded)
{
unsigned char *pbDecoded, *pbInteger;
unsigned long cbDecoded, cbInteger;
unsigned char *pbDecoded = NULL, *pbInteger;
unsigned long cbDecoded = 0, cbInteger;
int ret;

ret = _libssh2_wincng_asn_decode(pbEncoded, cbEncoded,
Expand Down Expand Up @@ -755,7 +755,7 @@ _libssh2_wincng_rsa_new(libssh2_rsa_ctx **rsa,
BCRYPT_RSAKEY_BLOB *rsakey;
LPCWSTR lpszBlobType;
unsigned char *key;
unsigned long keylen, offset, mlen, p1len, p2len;
unsigned long keylen, offset, mlen, p1len = 0, p2len = 0;
int ret;

mlen = max(_libssh2_wincng_bn_size(ndata, nlen),
Expand Down

0 comments on commit 19f1402

Please sign in to comment.