summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-02 03:13:35 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-02 03:13:35 +0000
commit6041576eb242d55cdc80115605ee3f1132729ad1 (patch)
treec5363e7a34e2649d09d5a24b04d0f76ceb31b0eb /MdeModulePkg
parent841c077074f6dc8b0682061da24b296c77e680f8 (diff)
downloadedk2-platforms-6041576eb242d55cdc80115605ee3f1132729ad1.tar.xz
The caller of FindVariable() function ensure VariableName != NULL && VendorGuid != NULL. In the internal of this function, we only need to ensure that (VariableName[0] != 0 && VenderGuid != NULL) is true.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7389 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Variable/Pei/Variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c
index d778fde073..471b6a4749 100644
--- a/MdeModulePkg/Universal/Variable/Pei/Variable.c
+++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c
@@ -367,7 +367,7 @@ FindVariable (
UINT32 Count;
UINT8 *VariableBase;
- if (VariableName != NULL && VendorGuid == NULL) {
+ if (VariableName[0] != 0 && VendorGuid == NULL) {
return EFI_INVALID_PARAMETER;
}
//