1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 09:38:54 -05:00

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

View File

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