mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Variable: Fix VS2015 warning about uninitialized local var.
This fix is used to solve VS2015 warning "local variable is not initialized before use" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18108 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
14e84fd888
commit
26c2edd51f
|
@ -4103,6 +4103,7 @@ VariableCommonInitialize (
|
||||||
//
|
//
|
||||||
// Init non-volatile variable store.
|
// Init non-volatile variable store.
|
||||||
//
|
//
|
||||||
|
NvFvHeader = NULL;
|
||||||
Status = InitNonVolatileVariableStore (&NvFvHeader);
|
Status = InitNonVolatileVariableStore (&NvFvHeader);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
FreePool (mVariableModuleGlobal);
|
FreePool (mVariableModuleGlobal);
|
||||||
|
|
Loading…
Reference in New Issue