]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't need to double check for null
authorMichael Jerris <mike@jerris.com>
Thu, 1 May 2014 22:50:26 +0000 (18:50 -0400)
committerMichael Jerris <mike@jerris.com>
Thu, 1 May 2014 22:50:26 +0000 (18:50 -0400)
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

index f9149e073528028cbefa0abff61ddc88e0637777..7e70b658774e223e07730d3055ef57e93735fe2f 100644 (file)
@@ -1432,11 +1432,7 @@ static switch_status_t speech_channel_set_param(speech_channel_t *schannel, cons
                if (!p) {
                        p = switch_core_strdup(schannel->memory_pool, param);
                }
-               if (val) {
-                       v = switch_core_strdup(schannel->memory_pool, val);
-               } else {
-                       v = val;
-               }
+               v = switch_core_strdup(schannel->memory_pool, val);
                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);
        }