Merge pull request #382 from atsampson/uninit0
Fix two uninitialised reads
This commit is contained in:
commit
f8768020d6
2 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
CChannel::CChannel ( const bool bNIsServer ) :
|
CChannel::CChannel ( const bool bNIsServer ) :
|
||||||
vecdGains ( MAX_NUM_CHANNELS, 1.0 ),
|
vecdGains ( MAX_NUM_CHANNELS, 1.0 ),
|
||||||
vecdPannings ( MAX_NUM_CHANNELS, 0.5 ),
|
vecdPannings ( MAX_NUM_CHANNELS, 0.5 ),
|
||||||
|
iCurSockBufNumFrames ( -1 ),
|
||||||
bDoAutoSockBufSize ( true ),
|
bDoAutoSockBufSize ( true ),
|
||||||
iFadeInCnt ( 0 ),
|
iFadeInCnt ( 0 ),
|
||||||
iFadeInCntMax ( FADE_IN_NUM_FRAMES_DBLE_FRAMESIZE ),
|
iFadeInCntMax ( FADE_IN_NUM_FRAMES_DBLE_FRAMESIZE ),
|
||||||
|
|
|
@ -174,6 +174,7 @@ bool CSignalUnix::setSignalHandled ( int sigNum, bool state )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sa.sa_handler = SIG_DFL;
|
sa.sa_handler = SIG_DFL;
|
||||||
|
sa.sa_flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ::sigaction ( sigNum, &sa, nullptr ) == 0;
|
return ::sigaction ( sigNum, &sa, nullptr ) == 0;
|
||||||
|
|
Loading…
Reference in a new issue