diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index 26f95c6d95..9f3d43486c 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -1336,6 +1336,7 @@ CalculateHobVariableCacheSize ( VARIABLE_STORE_HEADER *VariableStoreHeader; VariableStoreHeader = NULL; + ZeroMem (&StoreInfo, sizeof (VARIABLE_STORE_INFO)); GetHobVariableStore (&StoreInfo, &VariableStoreHeader); if (VariableStoreHeader == NULL) {