diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-27 08:46:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-27 08:46:02 +0000 |
commit | 52fb9ca2500b10eb0720d9c9271484e7c90e719a (patch) | |
tree | 2e8efed9359ffc103b2cfcab86e3bf2c445142b9 /server.c | |
parent | 12bb7436c39a6d443d4dc5ab1ab326e0b368daa1 (diff) | |
download | rtmux-52fb9ca2500b10eb0720d9c9271484e7c90e719a.tar.gz rtmux-52fb9ca2500b10eb0720d9c9271484e7c90e719a.tar.bz2 rtmux-52fb9ca2500b10eb0720d9c9271484e7c90e719a.zip |
Clear pollfds first.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.126 2009-03-05 20:24:41 nicm Exp $ */ +/* $Id: server.c,v 1.127 2009-03-27 08:46:02 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -249,6 +249,7 @@ server_main(const char *srv_path, int srv_fd) } nfds += ARRAY_LENGTH(&clients) * 2; pfds = xrealloc(pfds, nfds, sizeof *pfds); + memset(pfds, 0, nfds * sizeof *pfds); pfd = pfds; /* Fill server socket. */ |