From 57a3e4f9b5805e5443c7c1b0814d76abe8bcfa11 Mon Sep 17 00:00:00 2001 From: Qiu Shumin Date: Thu, 27 Aug 2015 01:23:55 +0000 Subject: [PATCH] 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 Reviewed-by: Jaben Carsey Reviewed-by: Leif Lindholm git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18327 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c | 1 + 1 file changed, 1 insertion(+) 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...)