]> code.delx.au - spectrwm/commitdiff
geez, wonder why this never bombed; zero it man!
authorMarco Peereboom <marco@conformal.com>
Thu, 22 Jan 2009 03:58:20 +0000 (03:58 +0000)
committerMarco Peereboom <marco@conformal.com>
Thu, 22 Jan 2009 03:58:20 +0000 (03:58 +0000)
scrotwm.c

index a97a184ae883d5e27dd4c55bb684ffabea20fb71..6c7a4de2e3ea34182b65e032d92069f6552abfa3 100644 (file)
--- 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)