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
This commit is contained in:
Qiu Shumin 2015-08-27 01:23:55 +00:00 committed by shenshushi
parent d933e70a97
commit 57a3e4f9b5
1 changed files with 1 additions and 0 deletions

View File

@ -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...)