summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/select.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 773394f23..088d60196 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2012-12-18 Christopher Faylor <me.cygwin2012@cgf.cx>
+ * select.cc (select_stuff::test_and_set): Remove workaround and use
+ proper constructor.
+
+2012-12-18 Christopher Faylor <me.cygwin2012@cgf.cx>
+
* select.cc (select_stuff::test_and_set): Work around problem of new()
not returning zeroed memory.
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 3ba55e9e3..2938e2595 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 = (select_record *) calloc (1, sizeof (select_record));
+ select_record *s = new select_record (0);
if (!s)
return false;