From 9d248f690a31299804854e0928cf6ecdcd2ce293 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 10 Oct 2010 19:24:33 -0700 Subject: [PATCH] Fix return in Buffer::New --- src/node_buffer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_buffer.cc b/src/node_buffer.cc index ae59b63f14..5c4e3c1bfe 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -101,6 +101,8 @@ Buffer* Buffer::New(char* data, size_t len) { Buffer *buffer = ObjectWrap::Unwrap(obj); memcpy(buffer->data_, data, len); + + return buffer; }