sha256: move assign to the declaration line

Follow-up to fae30656. Should've been squashed with that commit...
This commit is contained in:
Daniel Stenberg 2020-05-19 08:51:31 +02:00
parent fae3065676
commit 557dde201c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 2 deletions

View File

@ -223,8 +223,7 @@ static void SHA256_Update(SHA256_CTX *ctx,
static void SHA256_Final(unsigned char *digest, SHA256_CTX *ctx)
{
unsigned long length;
length = 0;
unsigned long length = 0;
CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0);
if(length == SHA256_DIGEST_LENGTH)