aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/json_archive.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-07 21:56:13 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-15 16:33:51 +0000
commitc5ee14ae6e0a70ec229b1b4077326bf7e9953c59 (patch)
treeb271dd3b8ddf15dd18717acbf3c3b8e1664a660e /src/serialization/json_archive.h
parentMerge pull request #4842 (diff)
downloadmonero-c5ee14ae6e0a70ec229b1b4077326bf7e9953c59.tar.xz
json_archive: initialize inner_array_size in ctor
Coverity 136581
Diffstat (limited to 'src/serialization/json_archive.h')
-rw-r--r--src/serialization/json_archive.h2
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)