Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Add missing return value to node::url::To{Ascii,Unicode}
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru authored and kevinsawicki committed Feb 6, 2017
1 parent 3290eb3 commit ff55de4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_url.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@ namespace url {
static int ToUnicode(std::string* input, std::string* output) {
output->reserve(input->length());
*output = input->c_str();
return 0;
}

static int ToASCII(std::string* input, std::string* output) {
output->reserve(input->length());
*output = input->c_str();
return 0;
}

static int IsValidUTF8(std::string* input) {
Expand Down

0 comments on commit ff55de4

Please sign in to comment.