voicebus: Initialize stack buffer.
Quiets the following (valid) warning from gcc 7.3.0: drivers/dahdi/voicebus/GpakApi.c:1648:22: warning: ‘MsgBuffer[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized] MsgBuffer[1] |= DTMF_UPDATE_MASK;
This commit is contained in:
parent
ea2d67414a
commit
7ecdf370bc
@ -1636,6 +1636,8 @@ gpakWriteSysParmsStatus_t gpakWriteSystemParms(
|
||||
DSP_WORD MsgBuffer[MSG_BUFFER_SIZE]; /* message buffer */
|
||||
DSP_WORD DspStatus; /* DSP's reply status */
|
||||
|
||||
memset(MsgBuffer, 0, sizeof(MsgBuffer));
|
||||
|
||||
/* Make sure the DSP Id is valid. */
|
||||
if (DspId >= MAX_DSP_CORES)
|
||||
return (WspInvalidDsp);
|
||||
|
Loading…
Reference in New Issue
Block a user