Module: sip-router Branch: master Commit: 75fc3dbf97269b6bdb1c36f9f81276cdba4f359a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=75fc3dbf...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Fri Dec 19 14:40:52 2008 +0100
script engine: minor fix
- warning fixes and minor rval_expr_eval_rvint() fix
---
rvalue.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/rvalue.c b/rvalue.c index 6471e85..9e020ef 100644 --- a/rvalue.c +++ b/rvalue.c @@ -1449,6 +1449,7 @@ int rval_expr_eval_rvint( struct run_act_ctx* h, rv1=0; rv2=0; + ret=-1; switch(rve->op){ case RVE_RVAL_OP: rv1=&rve->left.rval; @@ -1506,7 +1507,7 @@ int rval_expr_eval_rvint( struct run_act_ctx* h, rval_cache_clean(&c1); goto error; } - int_intop2(res_i, rve->op, i, j); + ret=int_intop2(res_i, rve->op, i, j); *res_rv=0; }else{ rv2=rval_expr_eval(h, msg, rve->right.rve); @@ -1559,6 +1560,7 @@ struct rvalue* rval_expr_eval(struct run_act_ctx* h, struct sip_msg* msg, rv1=0; rv2=0; + ret=0; switch(rve->op){ case RVE_RVAL_OP: rv_ref(&rve->left.rval);