diff options
Diffstat (limited to 'include')
-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')); } /*! |