summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Universal/VariablePei
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/VariablePei')
-rw-r--r--IntelFrameworkModulePkg/Universal/VariablePei/Variable.c2
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;
}
//