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 8aefc29725..231b0eb263 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 @@ -683,7 +683,7 @@ static switch_status_t parse_command(listener_t * listener, switch_event_t *even ename = cmd + 9; - while (ename && *ename == '\t' || *ename == ' ') { + while (ename && (*ename == '\t' || *ename == ' ')) { ++ename; }