diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 773394f23..088d60196 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-12-18 Christopher Faylor + + * select.cc (select_stuff::test_and_set): Remove workaround and use + proper constructor. + 2012-12-18 Christopher Faylor * select.cc (select_stuff::test_and_set): Work around problem of new() 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;