From 1afd7c166e2e0674d17d0acbb5e02ee8f78f01d9 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 11 Oct 2016 15:29:40 -0700 Subject: [PATCH] url: fix building when using --without-intl Fix compile bug when building with the --without-intl option (introduced by 4b312387ead4ba11146b28b8ac05ed385919c4af) PR-URL: https://github.com/nodejs/node/pull/9041 Reviewed-By: Colin Ihrig Reviewed-By: Myles Borins --- src/node_url.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_url.cc b/src/node_url.cc index f5b1a143f1..001475b04c 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -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(); }