From 42bbe58c47d9bb44b33616b5ba7f66ab6d2551bd Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 20 Jan 2019 16:38:27 -0500 Subject: [PATCH] report: remove unnecessary intermediate variable PR-URL: https://github.com/nodejs/node/pull/25597 Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann Reviewed-By: Denys Otrishko --- src/node_report_utils.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node_report_utils.cc b/src/node_report_utils.cc index e93f230d318a6d..bacc9fc3e4bfb9 100644 --- a/src/node_report_utils.cc +++ b/src/node_report_utils.cc @@ -232,8 +232,7 @@ void WalkHandle(uv_handle_t* h, void* arg) { if (h->type == UV_TCP || h->type == UV_NAMED_PIPE || h->type == UV_TTY || h->type == UV_UDP || h->type == UV_POLL) { uv_os_fd_t fd_v; - uv_os_fd_t* fd = &fd_v; - int rc = uv_fileno(h, fd); + int rc = uv_fileno(h, &fd_v); // uv_os_fd_t is an int on Unix and HANDLE on Windows. #ifndef _WIN32 if (rc == 0) {