ref: 4ca8ad2612aa7f5227c360cc2025d3873b12295a
parent: 1ae06eab9162d40631fd415ac0742181b9ed47ef
author: Martin Storsjö <martin@martin.st>
date: Mon Jan 26 07:50:03 EST 2015
Initialize pCodecInstance in the constructor This avoids using uninitialized memory if SetCodecInstance isn't ever called (as in DecUT_ParseSyntax).
--- a/codec/common/src/welsCodecTrace.cpp
+++ b/codec/common/src/welsCodecTrace.cpp
@@ -58,6 +58,7 @@
m_sLogCtx.pLogCtx = this;
m_sLogCtx.pfLog = StaticCodecTrace;
+ m_sLogCtx.pCodecInstance = NULL;
}
welsCodecTrace::~welsCodecTrace() {