mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-16 20:02:47 +00:00
Merge pull request #419 from dragos-oancea/mod_unimrcp-val-never-read
[mod_unimrcp] scan-build: Value stored to 'lname' is never read - audio_queue_create()
This commit is contained in:
commit
462e946320
@ -626,19 +626,13 @@ static switch_status_t audio_queue_create(audio_queue_t ** audio_queue, const ch
|
|||||||
#ifdef MOD_UNIMRCP_DEBUG_AUDIO_QUEUE
|
#ifdef MOD_UNIMRCP_DEBUG_AUDIO_QUEUE
|
||||||
int flags;
|
int flags;
|
||||||
#endif
|
#endif
|
||||||
char *lname = "";
|
char *lname;
|
||||||
char *lsession_uuid = NULL;
|
char *lsession_uuid = NULL;
|
||||||
*audio_queue = NULL;
|
*audio_queue = NULL;
|
||||||
|
|
||||||
lname = zstr(name) ? "" : switch_core_strdup(pool, name);
|
lname = zstr(name) ? "" : switch_core_strdup(pool, name);
|
||||||
lsession_uuid = zstr(session_uuid) ? NULL : switch_core_strdup(pool, session_uuid);
|
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) {
|
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);
|
switch_log_printf(SWITCH_CHANNEL_UUID_LOG(lsession_uuid), SWITCH_LOG_ERROR, "(%s) unable to create audio queue\n", lname);
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user