diff options
author | Marvin Häuser <Marvin.Haeuser@outlook.com> | 2018-02-27 23:42:06 +0100 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2018-02-28 09:15:12 +0800 |
commit | fb3107567492443967d7d03eb50f78ff94cc7600 (patch) | |
tree | e98aec31638950769a44ed4cc5442afb5109d1f9 | |
parent | fdeefbdf6ede2365c5067f6a2e49f8e525c85dd6 (diff) | |
download | edk2-platforms-fb3107567492443967d7d03eb50f78ff94cc7600.tar.xz |
MinPlatformPkg/DxePlatformManagerLib: Prevent the usage of uninitialized variables.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r-- | Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c | 2 |
1 files changed, 2 insertions, 0 deletions
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);
|