]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/SetVar.c
ShellPkg/SetVar: Fix typo in comments
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SetVar.c
index fc76b583f93be644bcd4d4ec4ddf5add32dcc3fc..8fb918d0822d811616eb1333c61640360090d833 100644 (file)
@@ -1,4 +1,4 @@
-/** @file\r
+/** @file\r
   Main file for SetVar shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
@@ -247,7 +247,7 @@ ParseParameterData (
 /**\r
   Function to get each data from parameters.\r
 \r
-  @param[in]    Pacakge               The package of checked values.\r
+  @param[in]    Package               The package of checked values.\r
   @param[out]   Buffer                A pointer to a buffer to hold the return data.\r
   @param[out]   BufferSize            Indicates the size of data in bytes return in Buffer.\r
 \r
@@ -279,6 +279,7 @@ GetVariableDataFromParameter (
 \r
   for (Index = 2; Index < ShellCommandLineGetCount (Package); Index++) {\r
     TempData = ShellCommandLineGetRawValue (Package, Index);\r
+    ASSERT (TempData != NULL);\r
 \r
     if (TempData[0] != L'=') {\r
       ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"setvar", TempData);\r