diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-10-11 10:56:20 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-11-08 16:36:43 +0800 |
commit | 61eb9834a30299f506e61deef6337dc77c726517 (patch) | |
tree | 38456c17ccbaca21f6f395e161ff4a65bfffe63d /BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | |
parent | 10bcabc6be01aa72584610844d58c9e041952ca2 (diff) | |
download | edk2-platforms-61eb9834a30299f506e61deef6337dc77c726517.tar.xz |
BaseTools/VfrCompile: Initialize local variables before being used
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp')
-rw-r--r-- | BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp index d2cb5cc9de..1ab95bec0a 100644 --- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp +++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp @@ -1328,7 +1328,7 @@ SVfrVarStorageNode::SVfrVarStorageNode ( if (Guid != NULL) {
mGuid = *Guid;
} else {
- memset (&Guid, 0, sizeof (EFI_GUID));
+ memset (&mGuid, 0, sizeof (EFI_GUID));
}
if (StoreName != NULL) {
mVarStoreName = new CHAR8[strlen(StoreName) + 1];
@@ -1355,7 +1355,7 @@ SVfrVarStorageNode::SVfrVarStorageNode ( if (Guid != NULL) {
mGuid = *Guid;
} else {
- memset (&Guid, 0, sizeof (EFI_GUID));
+ memset (&mGuid, 0, sizeof (EFI_GUID));
}
if (StoreName != NULL) {
mVarStoreName = new CHAR8[strlen(StoreName) + 1];
|