From 8b66a25f6642cd9941a4853cb4a5f704e3e6652b Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sun, 22 Nov 2015 10:18:21 +0100 Subject: [PATCH] Removed a useless line of code --- include/ArduinoJson/Internals/BlockJsonBuffer.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/ArduinoJson/Internals/BlockJsonBuffer.hpp b/include/ArduinoJson/Internals/BlockJsonBuffer.hpp index 55662b4f..b9bf02ea 100644 --- a/include/ArduinoJson/Internals/BlockJsonBuffer.hpp +++ b/include/ArduinoJson/Internals/BlockJsonBuffer.hpp @@ -68,7 +68,6 @@ class BlockJsonBuffer : public JsonBuffer { void* allocInNewBlock(size_t bytes) { size_t capacity = _nextBlockSize; - if (_head != NULL) capacity = _head->capacity * 2; if (bytes > capacity) capacity = bytes; if (!addNewBlock(capacity)) return NULL; _nextBlockSize *= 2;