This is an automated email from Gerrit. Tomas Vanek ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5373
-- gerrit commit dc71ce796373d71377b6e21d4019e3c980d50368 Author: Tomas Vanek <[email protected]> Date: Fri Dec 20 23:40:07 2019 +0100 server/server: fix clang static analyzer warning Change-Id: I317e189b62540e3688a20d88a95f551280317f14 Signed-off-by: Tomas Vanek <[email protected]> diff --git a/src/server/server.c b/src/server/server.c index 9e63f74..8e64117 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -562,7 +562,7 @@ int server_loop(struct command_context *command_context) struct connection *c; for (c = service->connections; c; ) { - if ((FD_ISSET(c->fd, &read_fds)) || c->input_pending) { + if ((c->fd >= 0 && FD_ISSET(c->fd, &read_fds)) || c->input_pending) { retval = service->input(c); if (retval != ERROR_OK) { struct connection *next = c->next; -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
