Skip to content

Commit 1afd7c1

Browse files
committed
url: fix building when using --without-intl
Fix compile bug when building with the --without-intl option (introduced by 4b31238) PR-URL: #9041 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 839f1f0 commit 1afd7c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_url.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ namespace url {
129129
#else
130130
// Intentional non-ops if ICU is not present.
131131
static int ToUnicode(std::string* input, std::string* output) {
132-
output->reserve(input.length());
132+
output->reserve(input->length());
133133
*output = input->c_str();
134134
}
135135

136136
static int ToASCII(std::string* input, std::string* output) {
137-
output->reserve(input.length());
137+
output->reserve(input->length());
138138
*output = input->c_str();
139139
}
140140

0 commit comments

Comments
 (0)