summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-19 08:51:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-19 08:52:38 +0200
commit557dde201c9998a6295939335cbfdffb2373bee1 (patch)
treebb0cfe6d2e8d197ec48dc68f407cb78508b3a103
parentfae3065676f1f2064f574f87d9c5003063e8963b (diff)
downloadcurl-557dde201c9998a6295939335cbfdffb2373bee1.tar.gz
sha256: move assign to the declaration line
Follow-up to fae30656. Should've been squashed with that commit...
-rw-r--r--lib/sha256.c3
1 files changed, 1 insertions, 2 deletions
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)