]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that
authorChristopher Faylor <me@cgf.cx>
Fri, 7 Sep 2001 00:07:49 +0000 (00:07 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 7 Sep 2001 00:07:49 +0000 (00:07 +0000)
prot_info_ptr is zeroed for later use.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_socket.cc

index 7afb90be16f39521808a1a71369b043cd99071e9..55d6a64ee8dd40ba44cc5e67c10002fa3514d9b5 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  6 20:04:05 2001  Christopher Faylor <cgf@cygnus.com>
+
+       * fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that
+       prot_info_ptr is zeroed for later use.
+
 Thu Sep  6 14:03:49 2001  Christopher Faylor <cgf@cygnus.com>
 
        * cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as
index aabaa47b772b5e1dec6f001fe1748aba4db2fdfb..a434a0129ed7c894d3a8183f92f419d9d98b1cc9 100644 (file)
@@ -45,7 +45,7 @@ fhandler_socket::fhandler_socket (const char *name) :
 {
   set_cb (sizeof *this);
   set_need_fork_fixup ();
-  prot_info_ptr = (LPWSAPROTOCOL_INFOA) cmalloc (HEAP_BUF,
+  prot_info_ptr = (LPWSAPROTOCOL_INFOA) ccalloc (HEAP_BUF, 1,
                                                 sizeof (WSAPROTOCOL_INFOA));
 }
 
This page took 0.032151 seconds and 5 git commands to generate.