diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2015-07-29 11:11:34 +0000 |
---|---|---|
committer | erictian <erictian@Edk2> | 2015-07-29 11:11:34 +0000 |
commit | 26c2edd51fdfccafb2711760432086a6115a7748 (patch) | |
tree | 25b91520f4e7dbc5d875673d5b8610828c3841a4 | |
parent | 14e84fd8888bfcc0f0d8fae8b69c6428b4226d1d (diff) | |
download | edk2-platforms-26c2edd51fdfccafb2711760432086a6115a7748.tar.xz |
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
-rw-r--r-- | MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 3c99367e76..834d2ff7c6 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -4103,6 +4103,7 @@ VariableCommonInitialize ( //
// Init non-volatile variable store.
//
+ NvFvHeader = NULL;
Status = InitNonVolatileVariableStore (&NvFvHeader);
if (EFI_ERROR (Status)) {
FreePool (mVariableModuleGlobal);
|