Browse code

script engine: minor fix

- warning fixes and minor rval_expr_eval_rvint() fix

Andrei Pelinescu-Onciul authored on 19/12/2008 13:40:52
Showing 1 changed files
... ...
@@ -1449,6 +1449,7 @@ int rval_expr_eval_rvint(			   struct run_act_ctx* h,
1449 1449
 	
1450 1450
 	rv1=0;
1451 1451
 	rv2=0;
1452
+	ret=-1;
1452 1453
 	switch(rve->op){
1453 1454
 		case RVE_RVAL_OP:
1454 1455
 			rv1=&rve->left.rval;
... ...
@@ -1506,7 +1507,7 @@ int rval_expr_eval_rvint(			   struct run_act_ctx* h,
1506 1506
 						rval_cache_clean(&c1);
1507 1507
 						goto error;
1508 1508
 				}
1509
-				int_intop2(res_i, rve->op, i, j);
1509
+				ret=int_intop2(res_i, rve->op, i, j);
1510 1510
 				*res_rv=0;
1511 1511
 			}else{
1512 1512
 				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,
1559 1559
 	
1560 1560
 	rv1=0;
1561 1561
 	rv2=0;
1562
+	ret=0;
1562 1563
 	switch(rve->op){
1563 1564
 		case RVE_RVAL_OP:
1564 1565
 			rv_ref(&rve->left.rval);