new macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9349 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-08-22 17:14:19 +00:00
parent f982e9adde
commit 5401dbc2e9
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ SWITCH_BEGIN_EXTERN_C
\param s the string to test
\return true value if the string is NULL or zero length
*/
#define switch_strlen_zero(s) (!s || *s == '\0')
#define switch_strlen_zero(s) (!s || *(s) == '\0')
#define switch_strlen_zero_buf(s) (*(s) == '\0')
static inline switch_bool_t switch_is_moh(const char *s)
{
if (switch_strlen_zero(s) || !strcasecmp(s, "silence") || !strcasecmp(s, "indicate_hold")) {