diff options
Diffstat (limited to 'winsup/cygwin/perthread.h')
-rw-r--r-- | winsup/cygwin/perthread.h | 3 |
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; } |