Skip to content

Commit

Permalink
destLen + 1 to avoid 0 * 2 iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Nov 2, 2011
1 parent 3faad13 commit c606491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-stringprep.cc
Expand Up @@ -117,7 +117,7 @@ class StringPrep : public ObjectWrap {

Handle<Value> prepare(String::Value &str)
{
size_t destLen = str.length();
size_t destLen = str.length() + 1;
UChar *dest = NULL;
while(!dest)
{
Expand Down

0 comments on commit c606491

Please sign in to comment.