FS-11785 [mod_format_cdr, mod_local_stream] fix dead assignment

This commit is contained in:
Chris Rienzo authored and Andrey Volk committed 2019-07-17 21:50:43 +04:00
1 parent 91d07accee
commit 7d0523f084
2 files changed
-4

No files matched your search

@@ -292,7 +292,6 @@ static switch_status_t my_on_reporting_cb(switch_core_session_t *session, cdr_pr
}
wrote++;
close(fd);
fd = -1;
} else {
char ebuf[512] = { 0 };
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing [%s][%s]\n",
@@ -462,7 +461,6 @@ static switch_status_t my_on_reporting_cb(switch_core_session_t *session, cdr_pr
}
wrote++;
close(fd);
fd = -1;
} else {
char ebuf[512] = { 0 };
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error![%s]\n",