url: fix building when using --without-intl

Fix compile bug when building with the --without-intl option
(introduced by 4b312387ea)

PR-URL: https://github.com/nodejs/node/pull/9041
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
James M Snell committed 2016-10-11 19:19:07 -07:00
1 parent 3d54ea4304
commit 774d737cdb
1 file changed
+2 -2
+2 -2
View File
@@ -129,12 +129,12 @@ namespace url {
#else
// Intentional non-ops if ICU is not present.
static int ToUnicode(std::string* input, std::string* output) {
output->reserve(input.length());
output->reserve(input->length());
*output = input->c_str();
}
static int ToASCII(std::string* input, std::string* output) {
output->reserve(input.length());
output->reserve(input->length());
*output = input->c_str();
}