From 9cdda7baa0819d544987d8fc909abdac549b27aa Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Thu, 30 Nov 2017 15:22:48 +0800 Subject: [PATCH] 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 --- BaseTools/Source/C/LzmaCompress/Sdk/C/7zFile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {