[newlib-cygwin] Cygwin: smallprint.cc: Drop HEAP_ZERO_MEMORY

Corinna Vinschen corinna@sourceware.org
Mon Aug 22 15:59:04 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c3e92052bbaa861d35646e7f9ceb813c8be26a64

commit c3e92052bbaa861d35646e7f9ceb813c8be26a64
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Aug 22 17:58:53 2022 +0200

    Cygwin: smallprint.cc: Drop HEAP_ZERO_MEMORY
    
    Leftover from testing.
    
    Reported-by: Noel Grandin <noelgrandin@gmail.com>
    Fixes: 07ec40170a32 ("Cygwin: smallprint.cc: Convert tmpbuf to lockless")
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/smallprint.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/smallprint.cc b/winsup/cygwin/smallprint.cc
index 0e8c6d9a9..1e89f1ce0 100644
--- a/winsup/cygwin/smallprint.cc
+++ b/winsup/cygwin/smallprint.cc
@@ -62,7 +62,7 @@ public:
   operator WCHAR * ()
   {
     if (!buf)
-      buf = (PWCHAR) HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY,
+      buf = (PWCHAR) HeapAlloc (GetProcessHeap (), 0,
 				NT_MAX_PATH * sizeof (WCHAR));
     return buf;
   }


More information about the Cygwin-cvs mailing list