]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_xml_cdr] scan-build: Fix dead assignments. 459/head
authorAndrey Volk <andywolk@gmail.com>
Thu, 27 Feb 2020 23:32:46 +0000 (03:32 +0400)
committerAndrey Volk <andywolk@gmail.com>
Thu, 27 Feb 2020 23:32:46 +0000 (03:32 +0400)
src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

index d9260b687eb02e5f398346554cd1cfb0e43c46c9..4e3bd81f784de7f82d22ea2821ff4ad1768e5806 100644 (file)
@@ -256,7 +256,6 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
                                wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
                                wrote++;
                                close(fd);
-                               fd = -1;
                        } else {
                                char ebuf[512] = { 0 };
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing [%s][%s]\n",
@@ -430,7 +429,6 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
                                wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
                                wrote++;
                                close(fd);
-                               fd = -1;
                        } else {
                                char ebuf[512] = { 0 };
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error![%s]\n",