From b49205ffcd195319303e0dd3a23aacda7a7c12ce Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 8 Jun 2016 12:27:41 +0100 Subject: [PATCH] Silence scan-build warning about uninitialised fd_set structure This is a false positive by scan-build (as FD_ZERO will initialise the structure for us), but silence it anyway to achieve a clean run. --- keyd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyd.c b/keyd.c index 7fb7eab..aa58b8a 100644 --- a/keyd.c +++ b/keyd.c @@ -606,7 +606,7 @@ static void usage(void) int main(int argc, char *argv[]) { int fd = -1, maxfd, i, clients[MAX_CLIENTS]; - fd_set rfds; + fd_set rfds = { 0 }; /* Avoid scan-build false report for FD_SET */ char sockname[1024]; char *configfile = NULL; bool foreground = false; -- 2.39.5