From: Hao Wu Date: Thu, 30 Nov 2017 07:22:48 +0000 (+0800) Subject: BaseTools/LzmaCompress: Fix possible uninitialized variable X-Git-Tag: edk2-stable201903~2783 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9cdda7baa0819d544987d8fc909abdac549b27aa;p=mirror_edk2.git BaseTools/LzmaCompress: Fix possible uninitialized variable Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu Reviewed-by: Liming Gao --- diff --git a/BaseTools/Source/C/LzmaCompress/Sdk/C/7zFile.c b/BaseTools/Source/C/LzmaCompress/Sdk/C/7zFile.c index 98fe7164f5..b2fed368a4 100644 --- a/BaseTools/Source/C/LzmaCompress/Sdk/C/7zFile.c +++ b/BaseTools/Source/C/LzmaCompress/Sdk/C/7zFile.c @@ -213,7 +213,7 @@ WRes File_GetLength(CSzFile *p, UInt64 *length) { #ifdef USE_WINDOWS_FILE - DWORD sizeHigh; + DWORD sizeHigh = 0; DWORD sizeLow = GetFileSize(p->handle, &sizeHigh); if (sizeLow == 0xFFFFFFFF) {