From: Daniel Stenberg Date: Tue, 19 May 2020 06:51:31 +0000 (+0200) Subject: sha256: move assign to the declaration line X-Git-Tag: curl-7_71_0~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=557dde201c9998a6295939335cbfdffb2373bee1;p=thirdparty%2Fcurl.git sha256: move assign to the declaration line Follow-up to fae30656. Should've been squashed with that commit... --- diff --git a/lib/sha256.c b/lib/sha256.c index aebcc55b22..ee5d273c43 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)