summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorQiu Shumin <shumin.qiu@intel.com>2015-08-27 01:23:55 +0000
committershenshushi <shenshushi@Edk2>2015-08-27 01:23:55 +0000
commit57a3e4f9b5805e5443c7c1b0814d76abe8bcfa11 (patch)
tree6ae5b1675d485924e02117ba8255018ed879765a /ShellPkg
parentd933e70a9761bf47941ac3d973cc5e7ee44da930 (diff)
downloadedk2-platforms-57a3e4f9b5805e5443c7c1b0814d76abe8bcfa11.tar.xz
ShellPkg: Fix the ASSERT issue in drvcfg command.
Initialize the local pointer to avoid to free a dangling pointer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18327 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
index 27b8873f83..609d076da0 100644
--- a/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
+++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
@@ -1171,6 +1171,7 @@ ShellCommandRunDrvCfg (
Status = EFI_SUCCESS;
Language = NULL;
UseHii = TRUE;
+ ProblemParam = NULL;
//
// initialize the shell lib (we must be in non-auto-init...)