diff --git a/lib/buffer.js b/lib/buffer.js index 2aac14caa73..17e1c6579c2 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -83,12 +83,10 @@ function Buffer(subject, encoding) { if (this.length < Buffer.poolSize / 2 && this.length > 0) { if (this.length > poolSize - poolOffset) createPool(); - var parent = sliceOnto(allocPool, - this, - poolOffset, - poolOffset + this.length); - if (this.length > 0) - this.parent = parent; + this.parent = sliceOnto(allocPool, + this, + poolOffset, + poolOffset + this.length); poolOffset += this.length; } else { alloc(this, this.length);