Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-07 04:07:49 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-07 04:07:49 +0400
commit04da0bbe2fc1e0d5d87a5f29a0613368d6bf022f (patch)
tree79d74907272ff0a96b9c660d43c139bc645d62e9 /winsup/cygwin/fhandler_socket.cc
parentb2bfade325e73c2f5c2c2bbe056d06dc9df04fa4 (diff)
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that
prot_info_ptr is zeroed for later use.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index aabaa47b7..a434a0129 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -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));
}