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.2@71288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2007-06-24 17:32:21 +00:00
parent 7e22d574a7
commit f7a787c757
2 changed files with 2 additions and 11 deletions

6
db.c
View File

@@ -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 {