[SR-Dev] git:master: fix compiler warning about uninitialized variable

Henning Westerholt henning.westerholt at 1und1.de
Tue Mar 3 19:13:15 CET 2009


Module: sip-router
Branch: master
Commit: 2891fdcfebf2b9c8313502478136e891be285341
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2891fdcfebf2b9c8313502478136e891be285341

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Tue Mar  3 19:12:41 2009 +0100

fix compiler warning about uninitialized variable

---

 lvalue.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lvalue.c b/lvalue.c
index 77a9a86..3c409ff 100644
--- a/lvalue.c
+++ b/lvalue.c
@@ -52,11 +52,10 @@ inline static int lval_avp_assign(struct run_act_ctx* h, struct sip_msg* msg,
 	int_str value;
 	unsigned short flags;
 	struct search_state st;
-	int ret;
-	int v;
-	int destroy_pval;
+	int ret, v, destroy_pval;
 	
 	destroy_pval=0;
+	flags = 0;
 	avp=&lv->lv.avps;
 	ret=0;
 	/* If the left attr was specified without indexing brackets delete




More information about the sr-dev mailing list