Module: kamailio
Branch: master
Commit: e0909ab1c890b11204dd38b26283cba5fad289c7
URL:
https://github.com/kamailio/kamailio/commit/e0909ab1c890b11204dd38b26283cba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-06T08:48:39+01:00
topoh: init vars inside th_build_socket_strings()
---
Modified: src/modules/topoh/topoh_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e0909ab1c890b11204dd38b26283cba…
Patch:
https://github.com/kamailio/kamailio/commit/e0909ab1c890b11204dd38b26283cba…
---
diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c
index d40f70fdd86..02098b1c1b0 100644
--- a/src/modules/topoh/topoh_mod.c
+++ b/src/modules/topoh/topoh_mod.c
@@ -312,9 +312,9 @@ int th_build_uri_prefix(str *uri_prefix, str *ip)
*/
int th_build_socket_strings(socket_info_t *socket)
{
- struct th_socket_strings *socket_strings;
- struct str_hash_entry *table_entry;
- str *socket_ip;
+ struct th_socket_strings *socket_strings = NULL;
+ struct str_hash_entry *table_entry = NULL;
+ str *socket_ip = NULL;
if(str_hash_get(
th_socket_hash_table, socket->sockname.s, socket->sockname.len)