summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index 33605d4b6a..97eb5db99c 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -109,7 +109,7 @@ fd_write(sock_T fd, char *buf, size_t len)
size = (DWORD)todo;
// If the pipe overflows while the job does not read the data,
// WriteFile() will block forever. This abandons the write.
- memset(&ov, 0, sizeof(ov));
+ CLEAR_FIELD(ov);
nwrite = 0;
if (!WriteFile(h, buf + done, size, &nwrite, &ov))
{