aboutsummaryrefslogtreecommitdiffstats
path: root/db.c
diff options
context:
space:
mode:
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 {