aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-26 18:54:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-26 18:54:24 +0000
commit1168964aa44ffe50af7f08aaae9fc1bbc90e7784 (patch)
treec0ffbb2fbd1dd819c7587a31da636ca6f4ae71c0 /utils.c
parentdb653f9eb1553a706ec819af67d84e261df14a26 (diff)
change ast_strlen_zero to also check for the string to be defined
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 889ab4b6a..d8dcfa6c7 100755
--- a/utils.c
+++ b/utils.c
@@ -570,7 +570,7 @@ int ast_build_string(char **buffer, size_t *space, const char *fmt, ...)
int ast_true(const char *s)
{
- if (!s || ast_strlen_zero(s))
+ if (ast_strlen_zero(s))
return 0;
/* Determine if this is a true value */
@@ -587,7 +587,7 @@ int ast_true(const char *s)
int ast_false(const char *s)
{
- if (!s || ast_strlen_zero(s))
+ if (ast_strlen_zero(s))
return 0;
/* Determine if this is a false value */