diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-04 03:01:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-04 03:01:35 +0000 |
commit | 026dcb34c6d72993b681fc16dee6979355c28ab4 (patch) | |
tree | f7dae9cbeeedc8b174181b6e11489dcc573c53c1 | |
parent | e48feef96a8fcb94c7cd81a98286da4ba536cc12 (diff) | |
download | cygnal-026dcb34c6d72993b681fc16dee6979355c28ab4.tar.gz cygnal-026dcb34c6d72993b681fc16dee6979355c28ab4.tar.bz2 cygnal-026dcb34c6d72993b681fc16dee6979355c28ab4.zip |
* cxx.cc (new): Fix formatting. Just return result of ccalloc rather than
calling memset explicitly.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/cxx.cc | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8346715a7..3a393949b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2003-09-03 Christopher Faylor <cgf@redhat.com> + * cxx.cc (new): Fix formatting. Just return result of ccalloc rather + than calling memset explicitly. + +2003-09-03 Christopher Faylor <cgf@redhat.com> + * exceptions.cc (set_process_mask): Set pending signals only when signals become unmasked. * sigproc.cc (pending_signals): Flip back to a global. diff --git a/winsup/cygwin/cxx.cc b/winsup/cygwin/cxx.cc index b52485a20..9cc1342fe 100644 --- a/winsup/cygwin/cxx.cc +++ b/winsup/cygwin/cxx.cc @@ -1,6 +1,6 @@ /* cxx.cc - Copyright 2002 Red Hat, Inc. + Copyright 2002, 2003 Red Hat, Inc. This file is part of Cygwin. @@ -16,9 +16,7 @@ details. */ void * operator new (size_t s) { - void *p = malloc (s); - if (p) - memset (p,0,s); + void *p = calloc (1, s); return p; } @@ -45,5 +43,4 @@ __cxa_pure_virtual (void) { api_fatal ("pure virtual method called"); } - #endif |