diff --git a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c index 6bab628fdf..f76708691d 100644 --- a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c +++ b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c @@ -1993,7 +1993,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_erlang_event_runtime) switch_memory_pool_t *pool = NULL, *listener_pool = NULL; switch_status_t rv; switch_sockaddr_t *sa; - switch_os_socket_t sockdes; + switch_os_socket_t sockdes = SWITCH_SOCK_INVALID; listener_t *listener; uint32_t x = 0; struct ei_cnode_s ec;