mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2026-04-29 02:24:09 +02:00
Fixed deserializeJson() silently accepting a Stream* (issue #978)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// ArduinoJson - arduinojson.org
|
||||
// Copyright Benoit Blanchon 2014-2019
|
||||
// MIT License
|
||||
|
||||
#include <ArduinoJson.h>
|
||||
|
||||
struct Stream {};
|
||||
|
||||
int main() {
|
||||
Stream* stream = 0;
|
||||
DynamicJsonDocument doc(1024);
|
||||
deserializeJson(doc, stream);
|
||||
}
|
||||
Reference in New Issue
Block a user