mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fix filter not working in zero-copy mode (fixes #1697)
This commit is contained in:
		| @@ -18,7 +18,6 @@ class StringMover { | ||||
|   } | ||||
|  | ||||
|   FORCE_INLINE String save() { | ||||
|     _writePtr[0] = 0;  // terminator | ||||
|     String s = str(); | ||||
|     _writePtr++; | ||||
|     return s; | ||||
| @@ -33,6 +32,7 @@ class StringMover { | ||||
|   } | ||||
|  | ||||
|   String str() const { | ||||
|     _writePtr[0] = 0;  // terminator | ||||
|     return String(_startPtr, size(), true); | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user