From: Marco Peereboom Date: Thu, 22 Jan 2009 03:58:20 +0000 (+0000) Subject: geez, wonder why this never bombed; zero it man! X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=15aa432b8e9f793212ed1bb5ffff5641108083c9;p=spectrwm.git geez, wonder why this never bombed; zero it man! --- 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)