[sr-dev] git:master:b07d4d0e: cfgutils: fix warning about uninitialized variable

Henning Westerholt hw at kamailio.org
Fri Jun 1 22:47:06 CEST 2018


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

Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date: 2018-06-01T22:45:26+02:00

cfgutils: fix warning about uninitialized variable

---

Modified: src/modules/cfgutils/cfgutils.c

---

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

---

diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index c0872ec33c..b2fe2bd4bd 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -208,7 +208,7 @@ struct module_exports exports = {
 /**************************** fixup functions ******************************/
 static int fixup_prob( void** param, int param_no)
 {
-	unsigned int myint;
+	unsigned int myint = 1000; /* stop if str2int later fail */
 	str param_str;
 
 	/* we only fix the parameter #1 */




More information about the sr-dev mailing list