From 413a995ad730de4743a2c4c04ea94cd8b2df017c Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 20 Jun 2020 17:53:34 +0100 Subject: [PATCH] Initialise CChannel::iCurSockBufNumFrames. This avoids a comparison with an uninitialised value when SetSockBufNumFrames is called later in the constructor. --- src/channel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/channel.cpp b/src/channel.cpp index 924f74d5..728e9e79 100755 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -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 ),