diff --git a/src/ArduinoJson/Variant/JsonVariantConst.hpp b/src/ArduinoJson/Variant/JsonVariantConst.hpp index 41e8fbb7..03ca50f9 100644 --- a/src/ArduinoJson/Variant/JsonVariantConst.hpp +++ b/src/ArduinoJson/Variant/JsonVariantConst.hpp @@ -29,7 +29,7 @@ class JsonVariantConst : public detail::VariantTag, public: // Creates an unbound reference. - JsonVariantConst() : data_(0) {} + JsonVariantConst() : data_(nullptr), resources_(nullptr) {} // INTERNAL USE ONLY explicit JsonVariantConst(const detail::VariantData* data,