[sr-dev] git:master:f8a92487: auth_xkeys: init var to get rid of compile warnings

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 30 15:27:58 CEST 2016


Module: kamailio
Branch: master
Commit: f8a924874a17e15511ccf1f5ca284c5e2247d805
URL: https://github.com/kamailio/kamailio/commit/f8a924874a17e15511ccf1f5ca284c5e2247d805

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-03-30T15:27:42+02:00

auth_xkeys: init var to get rid of compile warnings

---

Modified: modules/auth_xkeys/auth_xkeys.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f8a924874a17e15511ccf1f5ca284c5e2247d805.diff
Patch: https://github.com/kamailio/kamailio/commit/f8a924874a17e15511ccf1f5ca284c5e2247d805.patch

---

diff --git a/modules/auth_xkeys/auth_xkeys.c b/modules/auth_xkeys/auth_xkeys.c
index 6798948..3dfc07e 100644
--- a/modules/auth_xkeys/auth_xkeys.c
+++ b/modules/auth_xkeys/auth_xkeys.c
@@ -153,7 +153,7 @@ int authx_xkey_add_params(str *sparam)
 	param_hooks_t phooks;
 	param_t *pit=NULL;
 	auth_xkey_t tmp;
-	unsigned int uv;
+	unsigned int uv = 0;
 
 	if (parse_params(sparam, CLASS_ANY, &phooks, &params_list)<0)
 		return -1;




More information about the sr-dev mailing list