Module: sip-router
Branch: alexh/master
Commit: f99cef8da871e20be61665ed92d1f9b36c64b76f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f99cef8…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Alex Hermann <alex(a)speakup.nl>
Date: Fri Mar 11 16:50:30 2011 +0100
modules_k/pv: remove useless loop from transformation parameter parsing.
The while loop at the beginning of the macro already skips over whitespace.
---
modules_k/pv/pv_trans.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/modules_k/pv/pv_trans.c b/modules_k/pv/pv_trans.c
index 35c7fe2..eb8f405 100644
--- a/modules_k/pv/pv_trans.c
+++ b/modules_k/pv/pv_trans.c
@@ -1179,8 +1179,6 @@ int tr_eval_tobody(struct sip_msg *msg, tr_param_t *tp, int
subtype,
_tp->type = TR_PARAM_SPEC; \
_tp->v.data = (void*)_spec; \
} else { /* string */ \
- while(is_in_str(_p, _in) && (*_p==' ' || *_p=='\t' ||
*_p=='\n')) \
- _p++; \
_ps = _p; \
while(is_in_str(_p, _in) && *_p!=' ' && *_p!='\t'
&& *_p!='\n' \
&& *_p!=TR_PARAM_MARKER && *_p!=TR_RBRACKET) \