]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add the comment for function 'IsValidSplit' in 'Shell.c'. Add code to check whether...
authorShumin Qiu <shumin.qiu@intel.com>
Tue, 7 Jan 2014 01:51:08 +0000 (01:51 +0000)
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Jan 2014 01:51:08 +0000 (01:51 +0000)
Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15051 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/Shell.c
ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c

index ea142023d2a4ff8d4ba784f6b0bb1df8f0b2247d..44469baaed1f6de3e312349e7153f3dba8e40118 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This is THE shell (application)\r
 \r
-  Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2013, Hewlett-Packard Development Company, L.P.\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -1593,6 +1593,15 @@ GetOperationType(
   return (Unknown_Invalid);\r
 }\r
 \r
+/**\r
+  Determine if the first item in a command line is valid.\r
+\r
+  @param[in] CmdLine            The command line to parse.\r
+\r
+  @retval EFI_SUCCESS           The item is valid.\r
+  @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
+  @retval EFI_NOT_FOUND         The operation type is unknown or invalid.\r
+**/\r
 EFI_STATUS \r
 EFIAPI\r
 IsValidSplit(\r
index fd109679645d13015443b6f090ffe77682fe4db6..afeedb09591ec95aef652b954a8476ad9d4cce66 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for DmpStore shell Debug1 function.\r
 \r
-  Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -173,7 +173,7 @@ CascadeProcessVariables (
       //\r
       // Last error check then print this variable out.\r
       //\r
-      if (!EFI_ERROR(Status)) {\r
+      if (!EFI_ERROR(Status) && DataBuffer != NULL) {\r
         RetString = GetAttrType(Atts);\r
         ShellPrintHiiEx(\r
           -1,\r