Skip to content

Commit ecb5980

Browse files
XadillaXsxa
authored andcommitted
url, src: modify one special_back_slash
Make it always equals to `false`. PR-URL: #42112 Reviewed-By: Darshan Sen <[email protected]>
1 parent 6183749 commit ecb5980

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/node_url.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,10 @@ void URL::Parse(const char* input,
932932
url->flags &= ~URL_FLAGS_SPECIAL;
933933
special = false;
934934
}
935-
special_back_slash = (special && ch == '\\');
935+
// `special_back_slash` equals to `(special && ch == '\\')` and `ch`
936+
// here always not equals to `\\`. So `special_back_slash` here always
937+
// equals to `false`.
938+
special_back_slash = false;
936939
buffer.clear();
937940
if (has_state_override)
938941
return;

0 commit comments

Comments
 (0)