mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merged revisions 71288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r71288 | tilghman | 2007-06-24 12:32:21 -0500 (Sun, 24 Jun 2007) | 2 lines Issue 10043 - There is a legitimate need to be able to set variables to the empty string. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -534,12 +534,8 @@ static int manager_dbput(struct mansession *s, const struct message *m)
|
||||
astman_send_error(s, m, "No key specified");
|
||||
return 0;
|
||||
}
|
||||
if (ast_strlen_zero(val)) {
|
||||
astman_send_error(s, m, "No val specified");
|
||||
return 0;
|
||||
}
|
||||
|
||||
res = ast_db_put(family, key, (char *) val);
|
||||
res = ast_db_put(family, key, (char *) S_OR(val, ""));
|
||||
if (res) {
|
||||
astman_send_error(s, m, "Failed to update entry");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user