From 6dadfa5644993b28d77730164f8b44cb9af17a3c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 19 Dec 2012 21:15:54 +0000 Subject: [PATCH] * select.h (select_stuff::select_stuff): Make default constructor always zero everything while constructor with int arg just zeroes next. * select.cc (select_stuff::test_and_set): Revert to using default constructor. --- winsup/cygwin/ChangeLog | 7 +++++++ winsup/cygwin/select.cc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 578f7fdd7..32fff790a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2012-12-19 Christopher Faylor + + * select.h (select_stuff::select_stuff): Make default constructor + always zero everything while constructor with int arg just zeroes next. + * select.cc (select_stuff::test_and_set): Revert to using default + constructor. + 2012-12-19 Christopher Faylor * select.cc (select_stuff::wait): Add windows error number to error message. diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 5b3920d14..c67471cbc 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 (0); + select_record *s = new select_record; if (!s) return false;