diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-07 21:56:13 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-15 16:33:51 +0000 |
| commit | c5ee14ae6e0a70ec229b1b4077326bf7e9953c59 (patch) | |
| tree | b271dd3b8ddf15dd18717acbf3c3b8e1664a660e | |
| parent | d0c4123034248389597caa0c334e7e69219d2a74 (diff) | |
| download | monzero-core-c5ee14ae6e0a70ec229b1b4077326bf7e9953c59.tar.gz monzero-core-c5ee14ae6e0a70ec229b1b4077326bf7e9953c59.tar.xz monzero-core-c5ee14ae6e0a70ec229b1b4077326bf7e9953c59.zip | |
json_archive: initialize inner_array_size in ctor
Coverity 136581
| -rw-r--r-- | src/serialization/json_archive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization/json_archive.h b/src/serialization/json_archive.h index f906b5d3b..04436c21c 100644 --- a/src/serialization/json_archive.h +++ b/src/serialization/json_archive.h @@ -113,7 +113,7 @@ struct json_archive; template <> struct json_archive<true> : public json_archive_base<std::ostream, true> { - json_archive(stream_type &s, bool indent = false) : base_type(s, indent) { } + json_archive(stream_type &s, bool indent = false) : base_type(s, indent), inner_array_size_(0) { } template<typename T> static auto promote_to_printable_integer_type(T v) -> decltype(+v) |
