mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
change ast_strlen_zero to also check for the string to be defined
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
utils.c
4
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 */
|
||||
|
Reference in New Issue
Block a user