]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Fix the ASSERT issue in drvcfg command.
authorQiu Shumin <shumin.qiu@intel.com>
Thu, 27 Aug 2015 01:23:55 +0000 (01:23 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 27 Aug 2015 01:23:55 +0000 (01:23 +0000)
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

ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c

index 27b8873f839e44de4e4e50d845c06ea04dabe5f0..609d076da040d06489733469de2b8a1d9520de19 100644 (file)
@@ -1171,6 +1171,7 @@ ShellCommandRunDrvCfg (
   Status              = EFI_SUCCESS;\r
   Language            = NULL;\r
   UseHii              = TRUE;\r
+  ProblemParam        = NULL;\r
 \r
   //\r
   // initialize the shell lib (we must be in non-auto-init...)\r