summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-12-18 17:32:45 +0000
committerChristopher Faylor <me@cgf.cx>2012-12-18 17:32:45 +0000
commit4effb32b81a408635d4210ac7ce25c236297710a (patch)
tree2762de87df03d4f49928bd6173d0256473a2135d
parent9574be60a7db94ee5b981975afa37f6e2ae9ac20 (diff)
downloadcygnal-4effb32b81a408635d4210ac7ce25c236297710a.tar.gz
cygnal-4effb32b81a408635d4210ac7ce25c236297710a.tar.bz2
cygnal-4effb32b81a408635d4210ac7ce25c236297710a.zip
* select.cc (select_stuff::test_and_set): Remove workaround and use proper
constructor.
-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;