mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 18:17:59 +00:00
fix switch_false() logic for numbers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13740 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
965023a8eb
commit
f7f48fef3c
@ -161,7 +161,7 @@ SWITCH_DECLARE(switch_status_t) switch_frame_free(switch_frame_t **frame);
|
|||||||
!strcasecmp(expr, "disabled") ||\
|
!strcasecmp(expr, "disabled") ||\
|
||||||
!strcasecmp(expr, "inactive") ||\
|
!strcasecmp(expr, "inactive") ||\
|
||||||
!strcasecmp(expr, "disallow") ||\
|
!strcasecmp(expr, "disallow") ||\
|
||||||
!(switch_is_number(expr) && atoi(expr)))) ? SWITCH_TRUE : SWITCH_FALSE)
|
(switch_is_number(expr) && !atoi(expr)))) ? SWITCH_TRUE : SWITCH_FALSE)
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user