[core] scan-build: Value stored to 'frame' during its initialization is never read - eavesdrop_callback()

This commit is contained in:
Dragos Oancea 2020-01-30 23:26:19 +00:00
parent b067a7ccbd
commit 513c441d8e
1 changed files with 1 additions and 2 deletions

View File

@ -2001,10 +2001,9 @@ static switch_bool_t eavesdrop_callback(switch_media_bug_t *bug, void *user_data
}
if (nframe) {
switch_frame_t frame = {0};
switch_frame_t frame = *nframe;
uint8_t buf[SWITCH_RECOMMENDED_BUFFER_SIZE] = "";
frame = *nframe;
frame.data = buf;
frame.codec = nframe->codec;