mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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:
@@ -32,7 +32,7 @@
|
||||
|
||||
static inline int ast_strlen_zero(const char *s)
|
||||
{
|
||||
return (*s == '\0');
|
||||
return (!s || (*s == '\0'));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user