From acbeb5fb3c040e04c2a570c0b20c4bda164332e2 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 26 Feb 2018 09:32:03 -0500 Subject: [PATCH] win: remove unnecessary initialization There is no need to set req->fs.info.bufs to NULL and then memset() the entire req->fs struct on the next line. Refs: https://github.com/libuv/libuv/pull/1752#discussion_r169953154 PR-URL: https://github.com/libuv/libuv/pull/1762 Reviewed-By: Gireesh Punathil Reviewed-By: Ben Noordhuis --- src/win/fs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/win/fs.c b/src/win/fs.c index 6e0bdc7b..097b00e0 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -245,7 +245,6 @@ INLINE static void uv_fs_req_init(uv_loop_t* loop, uv_fs_t* req, req->ptr = NULL; req->path = NULL; req->cb = cb; - req->fs.info.bufs = NULL; memset(&req->fs, 0, sizeof(req->fs)); }