From: Lars Op den Kamp Date: Thu, 29 Sep 2011 20:03:07 +0000 (+0200) Subject: cec: forgot to initialise m_maxSize in CecBuffer X-Git-Tag: upstream/2.2.0~1^2~316 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fac23b028a858e6c8e4773b8a1670b4f96c96ce7;p=deb_libcec.git cec: forgot to initialise m_maxSize in CecBuffer --- diff --git a/src/lib/util/buffer.h b/src/lib/util/buffer.h index 4379f8d..dc7af83 100644 --- a/src/lib/util/buffer.h +++ b/src/lib/util/buffer.h @@ -38,7 +38,10 @@ template struct CecBuffer { public: - CecBuffer(int iMaxSize = 100) {} + CecBuffer(int iMaxSize = 100) + { + m_maxSize = iMaxSize; + } virtual ~CecBuffer(void) {} bool Push(_BType entry)