aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-04-18 22:59:25 +0200
committerMarc Hoersken <info@marc-hoersken.de>2014-04-18 22:59:25 +0200
commit54df616729e8edd514b44bc71fd05314001c468e (patch)
treebe834084f1613f1696b5d51f12d403c3cce42cc5 /lib
parent6f72c2fe312aa4569bffc2bf7016057c3df40342 (diff)
md5.c: fix use of uninitialized variable
Diffstat (limited to 'lib')
-rw-r--r--lib/md5.c2
1 files changed, 1 insertions, 1 deletions
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);