mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
* select.cc (select_stuff::test_and_set): Work around problem of new() not
returning zeroed memory.
This commit is contained in:
parent
e3132dba59
commit
9574be60a7
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2012-12-14 Corinna Vinschen <corinna@vinschen.de>
|
2012-12-14 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::write): Don't attempt to sparsify
|
* fhandler.cc (fhandler_base::write): Don't attempt to sparsify
|
||||||
|
@ -295,7 +295,7 @@ select_stuff::test_and_set (int i, fd_set *readfds, fd_set *writefds,
|
|||||||
&& ! UNIX_FD_ISSET (i, exceptfds))
|
&& ! UNIX_FD_ISSET (i, exceptfds))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
select_record *s = new select_record;
|
select_record *s = (select_record *) calloc (1, sizeof (select_record));
|
||||||
if (!s)
|
if (!s)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user