mirror of https://github.com/nodejs/node.git
Fix return in Buffer::New
parent
0cf03ab800
commit
9d248f690a
|
@ -101,6 +101,8 @@ Buffer* Buffer::New(char* data, size_t len) {
|
|||
Buffer *buffer = ObjectWrap::Unwrap<Buffer>(obj);
|
||||
|
||||
memcpy(buffer->data_, data, len);
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue