change ast_strlen_zero to also check for the string to be defined
[asterisk/asterisk.git] / include / asterisk / strings.h
index d7d27e5..7150612 100755 (executable)
@@ -32,7 +32,7 @@
 
 static inline int ast_strlen_zero(const char *s)
 {
-       return (*s == '\0');
+       return (!s || (*s == '\0'));
 }
 
 /*!