From 557dde201c9998a6295939335cbfdffb2373bee1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 19 May 2020 08:51:31 +0200 Subject: sha256: move assign to the declaration line Follow-up to fae30656. Should've been squashed with that commit... --- lib/sha256.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/sha256.c b/lib/sha256.c index aebcc55b2..ee5d273c4 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -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) -- cgit v1.2.3