Commit 54df6167 authored by Marc Hoersken's avatar Marc Hoersken
Browse files

md5.c: fix use of uninitialized variable

parent 6f72c2fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);