Skip to content

Commit

Permalink
topoh: init vars inside th_build_socket_strings()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 6, 2023
1 parent a096684 commit e0909ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/topoh/topoh_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0909ab

Please sign in to comment.