]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_rtmp] scan-build: Value stored to 'status' is never read - RTMP_INVOKE_FUNCTION... 432/head
authorDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 21:42:20 +0000 (21:42 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 21:42:20 +0000 (21:42 +0000)
src/mod/endpoints/mod_rtmp/rtmp_sig.c

index 42b29fe4c172f243400514d527ad195ea2afb61e..810647279de0cfee54384cf19f0ec1d529ba0849 100644 (file)
@@ -850,9 +850,7 @@ RTMP_INVOKE_FUNCTION(rtmp_i_sendevent)
                        if (switch_core_session_queue_event(session_pvt->session, &event) != SWITCH_STATUS_SUCCESS) {
                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session_pvt->session), SWITCH_LOG_ERROR, "Couldn't queue event to session\n");
                                switch_event_destroy(&event);
-                               status = SWITCH_STATUS_FALSE;
-                       } else {
-                               status = SWITCH_STATUS_SUCCESS;
+                               return SWITCH_STATUS_FALSE;
                        }
                }
        }