From e6075842e8549d64267bbadfea0a7485909ba639 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 20 Jul 2011 01:14:17 +0200 Subject: [PATCH] uv-unix: in uv_pipe_init: zero the _whole_ uv_pipe_t struct. --- src/uv-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uv-unix.c b/src/uv-unix.c index a1d368d0..35443922 100644 --- a/src/uv-unix.c +++ b/src/uv-unix.c @@ -1751,7 +1751,7 @@ int uv_getaddrinfo(uv_getaddrinfo_t* handle, int uv_pipe_init(uv_pipe_t* handle) { - memset(handle, 0, sizeof handle); + memset(handle, 0, sizeof *handle); uv__handle_init((uv_handle_t*)handle, UV_NAMED_PIPE); uv_counters()->pipe_init++;