mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Removed redundant range check in MemoryPoolPrint
This commit is contained in:
		| @@ -215,10 +215,8 @@ class MemoryPoolPrint : public Print { | ||||
|   } | ||||
|  | ||||
|   const char* c_str() { | ||||
|     if (_size >= _capacity) | ||||
|       return 0; | ||||
|  | ||||
|     _string[_size++] = 0;  // TODO: test overflow | ||||
|     _string[_size++] = 0; | ||||
|     ARDUINOJSON_ASSERT(_size <= _capacity); | ||||
|     return _pool->saveStringFromFreeZone(_size); | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user