mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-26 19:57:42 +00:00
[core] scan-build: Value stored to 'frame' during its initialization is never read - eavesdrop_callback()
This commit is contained in:
parent
b067a7ccbd
commit
513c441d8e
@ -2001,10 +2001,9 @@ static switch_bool_t eavesdrop_callback(switch_media_bug_t *bug, void *user_data
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nframe) {
|
if (nframe) {
|
||||||
switch_frame_t frame = {0};
|
switch_frame_t frame = *nframe;
|
||||||
uint8_t buf[SWITCH_RECOMMENDED_BUFFER_SIZE] = "";
|
uint8_t buf[SWITCH_RECOMMENDED_BUFFER_SIZE] = "";
|
||||||
|
|
||||||
frame = *nframe;
|
|
||||||
frame.data = buf;
|
frame.data = buf;
|
||||||
frame.codec = nframe->codec;
|
frame.codec = nframe->codec;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user