aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-26 20:29:06 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-26 20:29:06 +0200
commit4a64303d7110285d2b61bd29ea89d1390cc9a094 (patch)
tree692ceb60f66429a4cb61168b65bdba4966429475
parentMerge pull request #4830 (diff)
parentjson_archive: initialize inner_array_size in ctor (diff)
downloadmonero-4a64303d7110285d2b61bd29ea89d1390cc9a094.tar.xz
Merge pull request #4831
c5ee14ae json_archive: initialize inner_array_size in ctor (moneromooo-monero)
-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)