Module: kamailio
Branch: master
Commit: e6a3f6605f50d16f673724a2dc6cf22fc47bc717
URL:
https://github.com/kamailio/kamailio/commit/e6a3f6605f50d16f673724a2dc6cf22…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2016-05-24T13:22:28+03:00
modules/uid_domain: initialize variables
---
Modified: modules/uid_domain/uid_domain_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e6a3f6605f50d16f673724a2dc6cf22…
Patch:
https://github.com/kamailio/kamailio/commit/e6a3f6605f50d16f673724a2dc6cf22…
---
diff --git a/modules/uid_domain/uid_domain_mod.c b/modules/uid_domain/uid_domain_mod.c
index fda7bb9..abe43d5 100644
--- a/modules/uid_domain/uid_domain_mod.c
+++ b/modules/uid_domain/uid_domain_mod.c
@@ -433,7 +433,7 @@ static int db_load_domain(domain_t** d, unsigned long flags, str*
domain)
static int lookup_domain(struct sip_msg* msg, char* flags, char* fp)
{
str domain, tmp;
- domain_t* d;
+ domain_t* d = NULL;
int ret = -1;
if (get_str_fparam(&domain, msg, (fparam_t*)fp) != 0) {
@@ -527,13 +527,12 @@ int reload_domain_list(void)
static int lookup_domain_fixup(void** param, int param_no)
{
- unsigned long flags;
+ unsigned long flags=0;
char* s;
if (param_no == 1) {
/* Determine the track and class of attributes to be loaded */
s = (char*)*param;
- flags = 0;
if (*s != '$' || (strlen(s) != 3)) {
ERR("Invalid parameter value, $xy expected\n");
return -1;