]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix ECC issue for GenericBdsLib
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 27 Nov 2008 02:07:59 +0000 (02:07 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 27 Nov 2008 02:07:59 +0000 (02:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6744 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/GenericBdsLib/BdsConsole.c

index 999de49ba3507bb5758df5eb93f7b71114945611..af3572ff7de2ce5a6db844ee39d52056d92fb593 100644 (file)
@@ -166,7 +166,7 @@ BdsLibUpdateConsoleVariable (
     if (VarConsole != NULL) {\r
       FreePool(VarConsole);\r
     }\r
-    if (NewDevicePath) {\r
+    if (NewDevicePath != NULL) {\r
       FreePool(NewDevicePath);\r
     }\r
   }\r