diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-24 17:39:34 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-24 17:39:34 +0000 |
commit | 9d1f2c21182cc89876fb819c974b4245df12c56f (patch) | |
tree | ab657a1d0aa387bea124b853ac59b2dafbc8d54b /main/db.c | |
parent | 39f2779ece2564c4e7ff04a19f5a591deb45cf55 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@71289 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/db.c')
-rw-r--r-- | main/db.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 { |