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:
Andrey Volk 2020-02-01 02:32:44 +04:00 committed by GitHub
commit 1428e9a94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;