From fb3107567492443967d7d03eb50f78ff94cc7600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= Date: Tue, 27 Feb 2018 23:42:06 +0100 Subject: MinPlatformPkg/DxePlatformManagerLib: Prevent the usage of uninitialized variables. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Jiewen Yao --- .../MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c index ac12ae5318..e3cefb485d 100644 --- a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c @@ -225,6 +225,8 @@ IsTrustedConsole ( ConsoleDevice = DuplicateDevicePath(Device); + TrustedConsoleDevicepath = NULL; + switch (ConsoleType) { case ConIn: TrustedConsoleDevicepath = PcdGetPtr (PcdTrustedConsoleInputDevicePath); -- cgit v1.2.3