[Freeswitch-svn] [commit] r13740 - freeswitch/trunk/src/include

FreeSWITCH SVN mrene at freeswitch.org
Tue Jun 9 17:14:11 PDT 2009


Author: mrene
Date: Tue Jun  9 19:14:11 2009
New Revision: 13740

Log:
fix switch_false() logic for numbers

Modified:
   freeswitch/trunk/src/include/switch_utils.h

Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h	(original)
+++ freeswitch/trunk/src/include/switch_utils.h	Tue Jun  9 19:14:11 2009
@@ -161,7 +161,7 @@
 !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)
 
 
 /*!



More information about the Freeswitch-svn mailing list