From 828605fe4d97ade51d83da7ac38ae43110ec76ae Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Tue, 25 Feb 2020 20:16:16 +0000 Subject: [PATCH] [mod_unimrcp] scan-build: Value stored to 'lname' is never read - audio_queue_create() --- src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c index f441bf0130..a7d2d064f6 100644 --- a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c +++ b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c @@ -626,19 +626,13 @@ static switch_status_t audio_queue_create(audio_queue_t ** audio_queue, const ch #ifdef MOD_UNIMRCP_DEBUG_AUDIO_QUEUE int flags; #endif - char *lname = ""; + char *lname; char *lsession_uuid = NULL; *audio_queue = NULL; lname = zstr(name) ? "" : switch_core_strdup(pool, name); lsession_uuid = zstr(session_uuid) ? NULL : switch_core_strdup(pool, session_uuid); - if (zstr(name)) { - lname = ""; - } else { - lname = switch_core_strdup(pool, name); - } - if ((laudio_queue = (audio_queue_t *) switch_core_alloc(pool, sizeof(audio_queue_t))) == NULL) { switch_log_printf(SWITCH_CHANNEL_UUID_LOG(lsession_uuid), SWITCH_LOG_ERROR, "(%s) unable to create audio queue\n", lname); status = SWITCH_STATUS_FALSE;