GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: reduce variable scope in module_wrap.cc · nodejs/node@902ba0e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • module_wrap.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/module_wrap.cc‎

Copy file name to clipboardExpand all lines: src/module_wrap.cc
+7-8Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,15 @@ std::string ReadFile(uv_file file) {
433433
uv_fs_t req;
434434
char buffer_memory[4096];
435435
uv_buf_t buf = uv_buf_init(buffer_memory, sizeof(buffer_memory));
436-
int r;
437436

438437
do {
439-
r = uv_fs_read(uv_default_loop(),
440-
&req,
441-
file,
442-
&buf,
443-
1,
444-
contents.length(), // offset
445-
nullptr);
438+
const int r = uv_fs_read(uv_default_loop(),
439+
&req,
440+
file,
441+
&buf,
442+
1,
443+
contents.length(), // offset
444+
nullptr);
446445
uv_fs_req_cleanup(&req);
447446

448447
if (r <= 0)

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.