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 a2141d3

Browse filesBrowse files
committed
src: remove redundant snprintf
PR-URL: #34282 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b2241e9 commit a2141d3
Copy full SHA for a2141d3

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎src/node_dir.cc‎

Copy file name to clipboardExpand all lines: src/node_dir.cc
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ inline void DirHandle::GCClose() {
108108
if (ret < 0) {
109109
// Do not unref this
110110
env()->SetImmediate([detail](Environment* env) {
111-
char msg[70];
112-
snprintf(msg, arraysize(msg),
113-
"Closing directory handle on garbage collection failed");
111+
const char* msg = "Closing directory handle on garbage collection failed";
114112
// This exception will end up being fatal for the process because
115113
// it is being thrown from within the SetImmediate handler and
116114
// there is no JS stack to bubble it to. In other words, tearing

0 commit comments

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