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>
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user