From: Jonathan McDowell Date: Wed, 8 Jun 2016 11:27:41 +0000 (+0100) Subject: Silence scan-build warning about uninitialised fd_set structure X-Git-Tag: onak-0.5.0~25 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=b49205ffcd195319303e0dd3a23aacda7a7c12ce;p=onak.git 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. --- 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;