From 15aa432b8e9f793212ed1bb5ffff5641108083c9 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 22 Jan 2009 03:58:20 +0000 Subject: [PATCH] geez, wonder why this never bombed; zero it man! --- scrotwm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scrotwm.c b/scrotwm.c index a97a184..6c7a4de 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -2022,6 +2022,7 @@ main(int argc, char *argv[]) xfd = ConnectionNumber(display); while (running) { + FD_ZERO(&rd); FD_SET(xfd, &rd); if (select(xfd + 1, &rd, NULL, NULL, NULL) == -1) if (errno != EINTR) -- 1.7.10.4