BaseTools/VfrCompile: Resolve uninit class variables in constructor
The commit initializes those possibly uninitialized class variables in class constructors. Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -104,8 +104,13 @@ CFormPkg::CFormPkg (
|
||||
SBufferNode *Node;
|
||||
|
||||
mPkgLength = 0;
|
||||
mBufferSize = 0;
|
||||
mBufferNodeQueueHead = NULL;
|
||||
mBufferNodeQueueTail = NULL;
|
||||
mCurrBufferNode = NULL;
|
||||
mReadBufferNode = NULL;
|
||||
mReadBufferOffset = 0;
|
||||
PendingAssignList = NULL;
|
||||
|
||||
Node = new SBufferNode;
|
||||
if (Node == NULL) {
|
||||
@ -2421,6 +2426,7 @@ CIfrObj::CIfrObj (
|
||||
mObjBinLen = (ObjBinLen == 0) ? gOpcodeSizesScopeTable[OpCode].mSize : ObjBinLen;
|
||||
mObjBinBuf = ((DelayEmit == FALSE) && (gCreateOp == TRUE)) ? gCFormPkg.IfrBinBufferGet (mObjBinLen) : new CHAR8[EFI_IFR_MAX_LENGTH];
|
||||
mRecordIdx = (gCreateOp == TRUE) ? gCIfrRecordInfoDB.IfrRecordRegister (0xFFFFFFFF, mObjBinBuf, mObjBinLen, mPkgOffset) : EFI_IFR_RECORDINFO_IDX_INVALUD;
|
||||
mLineNo = 0;
|
||||
|
||||
assert (mObjBinBuf != NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user