Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a5f9023

Browse filesBrowse files
targosaduh95
authored andcommitted
src: initialize FSReqWrapSync in path that uses it
PR-URL: #56613 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8bbdb12 commit a5f9023
Copy full SHA for a5f9023

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/node_file.cc‎

Copy file name to clipboardExpand all lines: src/node_file.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,6 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) {
24822482
}
24832483
} else { // write(fd, string, pos, enc, undefined, ctx)
24842484
CHECK_EQ(argc, 6);
2485-
FSReqWrapSync req_wrap_sync;
24862485
FSReqBase::FSReqBuffer stack_buffer;
24872486
if (buf == nullptr) {
24882487
if (!StringBytes::StorageSize(isolate, value, enc).To(&len))
@@ -2496,6 +2495,7 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) {
24962495
buf = *stack_buffer;
24972496
}
24982497
uv_buf_t uvbuf = uv_buf_init(buf, len);
2498+
FSReqWrapSync req_wrap_sync("write");
24992499
FS_SYNC_TRACE_BEGIN(write);
25002500
int bytesWritten = SyncCall(env, args[5], &req_wrap_sync, "write",
25012501
uv_fs_write, fd, &uvbuf, 1, pos);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.