We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe237e commit 2c83ac0Copy full SHA for 2c83ac0
include/json.hpp
@@ -47,6 +47,7 @@ namespace json
47
switch (type)
48
{
49
case json_type::null:
50
+ value = nullptr;
51
break;
52
case json_type::boolean:
53
value = false;
src/json.cpp
@@ -4,7 +4,7 @@
4
5
namespace json
6
7
- json::json(std::initializer_list<json> init)
+ json::json(std::initializer_list<json> init) : value(nullptr)
8
9
if (init.size() == 2 && init.begin()->is_string())
10
{ // we have a key-value pair..
0 commit comments