change switch_strip_spaces to specify if you want it to dup the string or destroy the current buffer

This commit is contained in:
Anthony Minessale committed 2010-12-21 20:30:28 -06:00
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);