Fixed initialization for bitbuf m_pDebugName and m_errorHandler

This commit is contained in:
Jordan Cristiano 2016-04-24 22:12:05 -04:00
parent 4c5323dc64
commit 6c4f8e634a

View File

@ -800,15 +800,18 @@ bf_read::bf_read()
bf_read::bf_read( const void *pData, int nBytes, int nBits ) bf_read::bf_read( const void *pData, int nBytes, int nBits )
{ {
m_bAssertOnOverflow = true;
StartReading( pData, nBytes, 0, nBits ); StartReading( pData, nBytes, 0, nBits );
m_bAssertOnOverflow = true;
m_pDebugName = NULL;
m_errorHandler = NULL;
} }
bf_read::bf_read( const char *pDebugName, const void *pData, int nBytes, int nBits ) bf_read::bf_read( const char *pDebugName, const void *pData, int nBytes, int nBits )
{ {
StartReading( pData, nBytes, 0, nBits );
m_bAssertOnOverflow = true; m_bAssertOnOverflow = true;
m_pDebugName = pDebugName; m_pDebugName = pDebugName;
StartReading( pData, nBytes, 0, nBits ); m_errorHandler = NULL;
} }
void bf_read::StartReading( const void *pData, int nBytes, int iStartBit, int nBits ) void bf_read::StartReading( const void *pData, int nBytes, int iStartBit, int nBits )