Browse Source

fix compiler warning about uninitialized variable

Henning Westerholt 16 years ago
parent
commit
2891fdcfeb
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lvalue.c

+ 2 - 3
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