diff --git a/src/memchunk.h b/src/memchunk.h index b88560a8..24f0f27b 100644 --- a/src/memchunk.h +++ b/src/memchunk.h @@ -130,8 +130,7 @@ template struct Memchunks { size_t append(char c) { if (!tail) { head = tail = pool->get(); - } - if (tail->left() == 0) { + } else if (tail->left() == 0) { tail->next = pool->get(); tail = tail->next; }