diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-24 17:32:21 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-24 17:32:21 +0000 |
commit | 95e0116e290cd3a055b936fbc3352d382ee9ca66 (patch) | |
tree | 32b9fb50185471dc8545e7a05a5e26dd7b78eedf /db.c | |
parent | 69069986f462fe88d1f152998116c1aa479e1cee (diff) |
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.2@71288 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'db.c')
-rw-r--r-- | db.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -531,12 +531,8 @@ static int manager_dbput(struct mansession *s, struct message *m) 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 { |