mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
change switch_strip_spaces to specify if you want it to dup the string or destroy the current buffer
This commit is contained in:
1 parent
638cbf16cc
commit
4d7e4f1ec2
6 files changed
+60
-14
No files matched your search
@@ -1428,8 +1428,8 @@ SWITCH_STANDARD_API(cond_function)
|
||||
int a_is_num, b_is_num;
|
||||
*expr++ = '\0';
|
||||
b = expr;
|
||||
s_a = switch_strip_spaces(a);
|
||||
s_b = switch_strip_spaces(b);
|
||||
s_a = switch_strip_spaces(a, SWITCH_TRUE);
|
||||
s_b = switch_strip_spaces(b, SWITCH_TRUE);
|
||||
a_is_num = switch_is_number(s_a);
|
||||
b_is_num = switch_is_number(s_b);
|
||||
|
||||
|
||||
Reference in new issue
Block a user