diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 6e25889d6e4a25..858852e748fe03 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -612,7 +612,6 @@ void Fill(const FunctionCallbackInfo& args) { memcpy(ts_obj_data + start, *str, MIN(str_length, fill_length)); } else { - str_length = str_obj->Length(); // Write initial String to Buffer, then use that memory to copy remainder // of string. Correct the string length for cases like HEX where less than // the total string length is written.