summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/select.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-12-18 16:41:38 +0000
committerChristopher Faylor <me@cgf.cx>2012-12-18 16:41:38 +0000
commit9574be60a7db94ee5b981975afa37f6e2ae9ac20 (patch)
treee25e0b645cbde944f2b720260c6059ade61a5332 /winsup/cygwin/select.cc
parente3132dba5991af89a50cd695598ff0bd777c4b84 (diff)
downloadcygnal-9574be60a7db94ee5b981975afa37f6e2ae9ac20.tar.gz
cygnal-9574be60a7db94ee5b981975afa37f6e2ae9ac20.tar.bz2
cygnal-9574be60a7db94ee5b981975afa37f6e2ae9ac20.zip
* select.cc (select_stuff::test_and_set): Work around problem of new() not
returning zeroed memory.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r--winsup/cygwin/select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 4bd652c55..3ba55e9e3 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -295,7 +295,7 @@ select_stuff::test_and_set (int i, fd_set *readfds, fd_set *writefds,
&& ! UNIX_FD_ISSET (i, exceptfds))
return true;
- select_record *s = new select_record;
+ select_record *s = (select_record *) calloc (1, sizeof (select_record));
if (!s)
return false;