Initialize pCodecInstance in the constructor
This avoids using uninitialized memory if SetCodecInstance isn't ever called (as in DecUT_ParseSyntax).
This commit is contained in:
@@ -58,6 +58,7 @@ welsCodecTrace::welsCodecTrace() {
|
|||||||
|
|
||||||
m_sLogCtx.pLogCtx = this;
|
m_sLogCtx.pLogCtx = this;
|
||||||
m_sLogCtx.pfLog = StaticCodecTrace;
|
m_sLogCtx.pfLog = StaticCodecTrace;
|
||||||
|
m_sLogCtx.pCodecInstance = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
welsCodecTrace::~welsCodecTrace() {
|
welsCodecTrace::~welsCodecTrace() {
|
||||||
|
|||||||
Reference in New Issue
Block a user