Fix return in Buffer::New

pull/22966/head
Ryan Dahl 2010-10-10 19:24:33 -07:00
parent 0cf03ab800
commit 9d248f690a
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}