Module: kamailio
Branch: master
Commit: c7a8b95e02e286335d3b1ff531a0d2245525e629
URL:
https://github.com/kamailio/kamailio/commit/c7a8b95e02e286335d3b1ff531a0d22…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-05-14T09:43:14+02:00
userblacklist: initialize vars to avoid compiler warnings
---
Modified: modules/userblacklist/userblacklist.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c7a8b95e02e286335d3b1ff531a0d22…
Patch:
https://github.com/kamailio/kamailio/commit/c7a8b95e02e286335d3b1ff531a0d22…
---
diff --git a/modules/userblacklist/userblacklist.c
b/modules/userblacklist/userblacklist.c
index 1ece76f..17aebc2 100644
--- a/modules/userblacklist/userblacklist.c
+++ b/modules/userblacklist/userblacklist.c
@@ -695,9 +695,9 @@ static void dump_dtrie_mi(const struct dtrie_node_t *root,
const unsigned int branches, char *prefix, int *length, struct mi_root *reply)
{
struct mi_node *crt_node;
- unsigned int i;
- char digit, *val;
- int val_len;
+ unsigned int i;
+ char digit, *val = NULL;
+ int val_len = 0;
/* Sanity check - should not reach here anyway */
if (NULL == root) {