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 /src/serialization/json_archive.h | |
parent | Merge pull request #4842 (diff) | |
download | monero-c5ee14ae6e0a70ec229b1b4077326bf7e9953c59.tar.xz |
json_archive: initialize inner_array_size in ctor
Coverity 136581
Diffstat (limited to '')
-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) |