Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cxx.cc')
-rw-r--r--winsup/cygwin/cxx.cc7
1 files changed, 2 insertions, 5 deletions
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