Skip to content

Commit 1e48a5a

Browse files
mhdawsondanielleadams
authored andcommitted
src: address coverity warning in node_file.cc
Address coverity warning that looks like it identifies a potential crash due to using a value after it's been passed into std::move Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #45565 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
1 parent cd4b062 commit 1e48a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ int MKDirpAsync(uv_loop_t* loop,
15841584
std::string dirname = path.substr(0,
15851585
path.find_last_of(kPathSeparator));
15861586
if (dirname != path) {
1587-
req_wrap->continuation_data()->PushPath(std::move(path));
1587+
req_wrap->continuation_data()->PushPath(path);
15881588
req_wrap->continuation_data()->PushPath(std::move(dirname));
15891589
} else if (req_wrap->continuation_data()->paths().size() == 0) {
15901590
err = UV_EEXIST;

0 commit comments

Comments
 (0)