From 54df616729e8edd514b44bc71fd05314001c468e Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Fri, 18 Apr 2014 22:59:25 +0200 Subject: md5.c: fix use of uninitialized variable --- lib/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/md5.c b/lib/md5.c index d8344dbe4..af39fd41a 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -147,7 +147,7 @@ static void MD5_Update(MD5_CTX *ctx, static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) { - unsigned long length; + unsigned long length = 0; CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0); if(length == 16) CryptGetHashParam(ctx->hHash, HP_HASHVAL, digest, &length, 0); -- cgit v1.2.3