Merge pull request #283 from dragos-oancea/eavesdrop_callback-val-never-read
[core] scan-build: Value stored to 'frame' during its initialization is never read - eavesdrop_callback()
This commit is contained in:
commit
1428e9a94b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue