From: Mathieu Rene Date: Wed, 10 Jun 2009 00:14:11 +0000 (+0000) Subject: fix switch_false() logic for numbers X-Git-Tag: v1.0.4~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f48fef3c2a12a28674d51da8d70b073f0870af;p=thirdparty%2Ffreeswitch.git fix switch_false() logic for numbers git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13740 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 6dfe5d0055..1b13777166 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -161,7 +161,7 @@ SWITCH_DECLARE(switch_status_t) switch_frame_free(switch_frame_t **frame); !strcasecmp(expr, "disabled") ||\ !strcasecmp(expr, "inactive") ||\ !strcasecmp(expr, "disallow") ||\ -!(switch_is_number(expr) && atoi(expr)))) ? SWITCH_TRUE : SWITCH_FALSE) +(switch_is_number(expr) && !atoi(expr)))) ? SWITCH_TRUE : SWITCH_FALSE) /*!