diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-10-26 18:54:24 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-10-26 18:54:24 +0000 |
commit | a736096e0b41f218cabd514a7841577a2ff4060e (patch) | |
tree | c0ffbb2fbd1dd819c7587a31da636ca6f4ae71c0 /include/asterisk/strings.h | |
parent | b5326f99fcad63b818436b02966afafbeabd24d6 (diff) |
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
Diffstat (limited to 'include/asterisk/strings.h')
-rwxr-xr-x | include/asterisk/strings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index d7d27e515..715061216 100755 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -32,7 +32,7 @@ static inline int ast_strlen_zero(const char *s) { - return (*s == '\0'); + return (!s || (*s == '\0')); } /*! |