don't push null values into the hash
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8427 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3a02a627b7
commit
8190b63460
|
@ -266,9 +266,9 @@ static switch_status_t do_config(void)
|
|||
need_vars_map = 1;
|
||||
}
|
||||
|
||||
if(vars_map)
|
||||
if (switch_core_hash_insert(vars_map,val,ENABLE_PARAM_VALUE) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant add %s to params hash!\n",val);
|
||||
if (vars_map && val)
|
||||
if (switch_core_hash_insert(vars_map, val, ENABLE_PARAM_VALUE) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant add %s to params hash!\n",val);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue