]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: Value stored to 'frame' during its initialization is never read... 283/head
authorDragos Oancea <dragos@signalwire.com>
Thu, 30 Jan 2020 23:26:19 +0000 (23:26 +0000)
committerDragos Oancea <dragos@signalwire.com>
Fri, 31 Jan 2020 21:56:58 +0000 (21:56 +0000)
src/switch_ivr_async.c

index c2a009f7259ed188861241d28e302af29541eb90..aeae728065f40fb5c7fe471ae1bf1ce0a8bb9485 100644 (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;