Module: kamailio
Branch: master
Commit: b07d4d0e5c9c5db07d4d0806e6a1540b73b6c333
URL:
https://github.com/kamailio/kamailio/commit/b07d4d0e5c9c5db07d4d0806e6a1540…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)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/b07d4d0e5c9c5db07d4d0806e6a1540…
Patch:
https://github.com/kamailio/kamailio/commit/b07d4d0e5c9c5db07d4d0806e6a1540…
---
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 */