]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sha256: move assign to the declaration line
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 May 2020 06:51:31 +0000 (08:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 May 2020 06:52:38 +0000 (08:52 +0200)
Follow-up to fae30656. Should've been squashed with that commit...

lib/sha256.c

index aebcc55b22899bd0f3117a71ebe7a4f0b1ae130f..ee5d273c43e89cfdc7ccb4b546dc61a50c349bf2 100644 (file)
@@ -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)