]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cxx.cc (new): Fix formatting. Just return result of ccalloc rather than
authorChristopher Faylor <me@cgf.cx>
Thu, 4 Sep 2003 03:01:35 +0000 (03:01 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 4 Sep 2003 03:01:35 +0000 (03:01 +0000)
calling memset explicitly.

winsup/cygwin/ChangeLog
winsup/cygwin/cxx.cc

index 8346715a7fd3f1158f83230b6e5987fbac3442e3..3a393949b118332d37f291b25c1d18bf6e86d9fc 100644 (file)
@@ -1,3 +1,8 @@
+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
index b52485a2009bd61fe51983dca57d4f99734dba28..9cc1342fe897b309362555ffb901423c52c2cb2c 100644 (file)
@@ -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
This page took 0.033734 seconds and 5 git commands to generate.