summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Library/GenericBdsLib/BdsMisc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
index 9482cbe..499d0f3 100644
--- a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
+++ b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
@@ -1014,6 +1014,7 @@ BdsLibGetImageHeader (
&Root
);
if (EFI_ERROR (Status)) {
+ Root = NULL;
goto Done;
}