git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@71337
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
astman_send_error(s, m, "No key specified");
return 0;
}
- if (!strlen(val)) {
- astman_send_error(s, m, "No val specified");
- return 0;
- }
- res = ast_db_put(family, key, val);
+ res = ast_db_put(family, key, val ? val : "");
if (res) {
astman_send_error(s, m, "Failed to update entry");
} else {
return 0;
}
- if (ast_strlen_zero(varval)) {
- astman_send_error(s, m, "No value specified");
- return 0;
- }
-
if (!ast_strlen_zero(name)) {
c = ast_get_channel_by_name_locked(name);
if (!c) {
}
}
- pbx_builtin_setvar_helper(c, varname, varval);
+ pbx_builtin_setvar_helper(c, varname, varval ? varval : "");
if (c)
ast_mutex_unlock(&c->lock);