FS-11785 [mod_format_cdr, mod_local_stream] fix dead assignment

This commit is contained in:
Chris Rienzo 2019-05-03 00:11:58 +00:00 committed by Andrey Volk
parent 91d07accee
commit 7d0523f084
2 changed files with 0 additions and 4 deletions

View File

@ -292,7 +292,6 @@ static switch_status_t my_on_reporting_cb(switch_core_session_t *session, cdr_pr
} }
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",
@ -462,7 +461,6 @@ static switch_status_t my_on_reporting_cb(switch_core_session_t *session, cdr_pr
} }
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",

View File

@ -496,7 +496,6 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
if (source->hup) { if (source->hup) {
source->hup = 0; source->hup = 0;
if (is_open) { if (is_open) {
is_open = 0;
switch_core_file_close(use_fh); switch_core_file_close(use_fh);
flush_video_queue(source->video_q); flush_video_queue(source->video_q);
@ -560,7 +559,6 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
if (use_fh == &source->chime_fh) { if (use_fh == &source->chime_fh) {
source->chime_counter = source->rate * source->chime_freq; source->chime_counter = source->rate * source->chime_freq;
use_fh = &fh;
} else { } else {
is_open = 0; is_open = 0;
} }