- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2
CORE-13265 #resolve
svn path=/trunk/; revision=74571
/* Check if we should compute hash and/or signatures */
ComputeSignature = ImageFlags & BL_LOAD_IMG_COMPUTE_SIGNATURE;
+ ComputeHash = FALSE;
if ((ComputeSignature) || (ImageFlags & BL_LOAD_IMG_COMPUTE_HASH))
{
ComputeHash = TRUE;
}
/* Is the read fully complete? We need to finalize the hash if requested */
- if (ComputeHash != RemainingLength)
+ if (ComputeHash)
{
// todo: CRYPTO IS HARD
}