diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-02 03:13:35 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-02 03:13:35 +0000 |
commit | 6041576eb242d55cdc80115605ee3f1132729ad1 (patch) | |
tree | c5363e7a34e2649d09d5a24b04d0f76ceb31b0eb /IntelFrameworkModulePkg/Universal | |
parent | 841c077074f6dc8b0682061da24b296c77e680f8 (diff) | |
download | edk2-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 'IntelFrameworkModulePkg/Universal')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/VariablePei/Variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c index 2cda7ff3ad..d5881f5ce8 100644 --- a/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c +++ b/IntelFrameworkModulePkg/Universal/VariablePei/Variable.c @@ -379,7 +379,7 @@ FindVariable ( UINT32 Count;
UINT8 *VariableBase;
- if (VariableName != 0 && VendorGuid == NULL) {
+ if (VariableName[0] != 0 && VendorGuid == NULL) {
return EFI_INVALID_PARAMETER;
}
//
|