diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index b2cf475776..cee85022e4 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -227,12 +227,12 @@ static void strip_cr(char *s) static switch_status_t read_packet(listener_t *listener, switch_event_t **event, uint32_t timeout) { - switch_size_t mlen; + switch_size_t mlen, bytes = 0; char mbuf[2048] = ""; char buf[1024] = ""; switch_size_t len; switch_status_t status = SWITCH_STATUS_SUCCESS; - int count = 0, bytes = 0; + int count = 0; uint32_t elapsed = 0; time_t start = 0; void *pop;