From 3ebad9748987d84d5d54b83fed7f3c64d036c849 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 28 Feb 2020 03:32:46 +0400 Subject: [PATCH] [mod_xml_cdr] scan-build: Fix dead assignments. --- src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c index d9260b687e..4e3bd81f78 100644 --- a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c +++ b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c @@ -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",