aboutsummaryrefslogtreecommitdiffstats
path: root/db.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-19 15:53:40 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-19 15:53:40 +0000
commita8d2b1d65979fd7f136db30660ec611faaa4af1e (patch)
tree77b323790dfe00f2455c4efde97eafbcfcbc9dda /db.c
parent0a383e05c5bd9aafd084c8d857e68e1567b7cb30 (diff)
convert a few more uses of strlen where ast_strlen_zero should be used
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13622 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'db.c')
-rw-r--r--db.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/db.c b/db.c
index 50f9cafbf..522e3de1c 100644
--- a/db.c
+++ b/db.c
@@ -520,15 +520,15 @@ static int manager_dbput(struct mansession *s, struct message *m)
char *val = astman_get_header(m, "Val");
int res;
- if (!strlen(family)) {
+ if (ast_strlen_zero(family)) {
astman_send_error(s, m, "No family specified");
return 0;
}
- if (!strlen(key)) {
+ if (ast_strlen_zero(key)) {
astman_send_error(s, m, "No key specified");
return 0;
}
- if (!strlen(val)) {
+ if (ast_strlen_zero(val)) {
astman_send_error(s, m, "No val specified");
return 0;
}
@@ -551,11 +551,11 @@ static int manager_dbget(struct mansession *s, struct message *m)
char tmp[256];
int res;
- if (!strlen(family)) {
+ if (ast_strlen_zero(family)) {
astman_send_error(s, m, "No family specified.");
return 0;
}
- if (!strlen(key)) {
+ if (ast_strlen_zero(key)) {
astman_send_error(s, m, "No key specified.");
return 0;
}