summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/perthread.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-01-20 19:36:35 +0000
committerChristopher Faylor <me@cgf.cx>2004-01-20 19:36:35 +0000
commit67fcf127c1f23d4fd5f630e72ad8304dc53b7095 (patch)
tree57077489fe3a07b7b585b268c37e31252023643e /winsup/cygwin/perthread.h
parent69c7680cf75d6fe6059373220d8dcfd6e043a577 (diff)
downloadcygnal-67fcf127c1f23d4fd5f630e72ad8304dc53b7095.tar.gz
cygnal-67fcf127c1f23d4fd5f630e72ad8304dc53b7095.tar.bz2
cygnal-67fcf127c1f23d4fd5f630e72ad8304dc53b7095.zip
* include/cygwin/version.h: Bump DLL minor number to 8.
* cygmalloc.h: Make more concessions to attempts to get debugging malloc working. * debug.h: Ditto. * dlmalloc.cc: Ditto. * dlmalloc.h: Ditto. * malloc_wrapper.cc: Ditto. * perthread.h (perthread::create): Use calloc to ensure zeroed memory.
Diffstat (limited to 'winsup/cygwin/perthread.h')
-rw-r--r--winsup/cygwin/perthread.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/perthread.h b/winsup/cygwin/perthread.h
index 2b4b0fdba..add07e3d5 100644
--- a/winsup/cygwin/perthread.h
+++ b/winsup/cygwin/perthread.h
@@ -28,8 +28,7 @@ public:
virtual void set (int n) {TlsSetValue (get_tls (), (void *)n);}
virtual void *create ()
{
- void *s = new char [size ()];
- memset (s, 0, size ());
+ void *s = calloc (1, size ());
set (s);
return s;
}