]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add ASSERT in case SalSystemTable is NULL.
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 19 Jan 2009 08:29:55 +0000 (08:29 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 19 Jan 2009 08:29:55 +0000 (08:29 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7306 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiSalLib/UefiSalLib.c

index b3a7b37597f1111346f430e8e4e9a4944642065e..9ed8606c4fa0031e28adcc83e1894011bab16572 100644 (file)
@@ -111,8 +111,8 @@ UefiSalLibConstructor (
              &gEfiSalSystemTableGuid,\r
              (VOID **) &SalSystemTable\r
              );\r
-\r
   ASSERT_EFI_ERROR (Status);\r
+  ASSERT (SalSystemTable != NULL);\r
 \r
   //\r
   // Check the first entry of SAL System Table,\r