aboutsummaryrefslogtreecommitdiffstats
path: root/db.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-24 17:32:21 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-24 17:32:21 +0000
commit95e0116e290cd3a055b936fbc3352d382ee9ca66 (patch)
tree32b9fb50185471dc8545e7a05a5e26dd7b78eedf /db.c
parent69069986f462fe88d1f152998116c1aa479e1cee (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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/db.c b/db.c
index 6d9e2b620..f3ea4f9c6 100644
--- a/db.c
+++ b/db.c
@@ -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 {