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:
Martin Storsjö
2015-01-26 12:50:03 +02:00
parent 1ae06eab91
commit 4ca8ad2612

View File

@@ -58,6 +58,7 @@ welsCodecTrace::welsCodecTrace() {
m_sLogCtx.pLogCtx = this;
m_sLogCtx.pfLog = StaticCodecTrace;
m_sLogCtx.pCodecInstance = NULL;
}
welsCodecTrace::~welsCodecTrace() {