mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
don't need to double check for null
This commit is contained in:
parent
a3e1b7df49
commit
2e3558c43e
@ -1432,11 +1432,7 @@ static switch_status_t speech_channel_set_param(speech_channel_t *schannel, cons
|
|||||||
if (!p) {
|
if (!p) {
|
||||||
p = switch_core_strdup(schannel->memory_pool, param);
|
p = switch_core_strdup(schannel->memory_pool, param);
|
||||||
}
|
}
|
||||||
if (val) {
|
v = switch_core_strdup(schannel->memory_pool, val);
|
||||||
v = switch_core_strdup(schannel->memory_pool, val);
|
|
||||||
} else {
|
|
||||||
v = val;
|
|
||||||
}
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) param = %s, val = %s\n", schannel->name, p, v);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "(%s) param = %s, val = %s\n", schannel->name, p, v);
|
||||||
switch_core_hash_insert(schannel->params, p, v);
|
switch_core_hash_insert(schannel->params, p, v);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user