Merge pull request #382 from atsampson/uninit0

Fix two uninitialised reads
This commit is contained in:
Volker Fischer 2020-06-21 07:03:39 +02:00 committed by GitHub
commit f8768020d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@
CChannel::CChannel ( const bool bNIsServer ) :
vecdGains ( MAX_NUM_CHANNELS, 1.0 ),
vecdPannings ( MAX_NUM_CHANNELS, 0.5 ),
iCurSockBufNumFrames ( -1 ),
bDoAutoSockBufSize ( true ),
iFadeInCnt ( 0 ),
iFadeInCntMax ( FADE_IN_NUM_FRAMES_DBLE_FRAMESIZE ),

View File

@ -174,6 +174,7 @@ bool CSignalUnix::setSignalHandled ( int sigNum, bool state )
else
{
sa.sa_handler = SIG_DFL;
sa.sa_flags = 0;
}
return ::sigaction ( sigNum, &sa, nullptr ) == 0;