aboutsummaryrefslogtreecommitdiff
path: root/lib/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sha256.c')
-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)