From d0f96da2c02b83c247b567d9549ecc54822f6469 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 12 Sep 2015 02:10:07 +0900 Subject: [PATCH] src: Cleanup --- src/memchunk.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }