[mod_xml_cdr] scan-build: Fix dead assignments.
This commit is contained in:
parent
695ba877aa
commit
3ebad97489
|
@ -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 = write(fd, xml_text, (unsigned) strlen(xml_text));
|
||||||
wrote++;
|
wrote++;
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
|
||||||
} else {
|
} else {
|
||||||
char ebuf[512] = { 0 };
|
char ebuf[512] = { 0 };
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing [%s][%s]\n",
|
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 = write(fd, xml_text, (unsigned) strlen(xml_text));
|
||||||
wrote++;
|
wrote++;
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
|
||||||
} else {
|
} else {
|
||||||
char ebuf[512] = { 0 };
|
char ebuf[512] = { 0 };
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error![%s]\n",
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error![%s]\n",
|
||||||
|
|
Loading…
Reference in New Issue