From 3a1addf6cb724a905607fe297b846d09aa1c7c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Mon, 26 Jun 2023 22:14:49 -0300 Subject: [PATCH] fixup! src,lib: reducing C++ calls of esm legacy main resolve Backport-PR-URL: https://github.com/nodejs/node/pull/48325 --- src/node_file.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index e1c6d51ce6efc2..cc93fd01356e52 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -2635,8 +2635,9 @@ static bool FileURLToPath( for (size_t i = 0; i < pathname_size; i++) { if (pathname[i] == '/') { pathname_escaped_slash += '\\'; - } else + } else { pathname_escaped_slash += pathname[i]; + } if (pathname[i] != '%') continue;