mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 20:36:31 +02:00
json_archive: initialize inner_array_size in ctor
Coverity 136581
This commit is contained in:
parent
d0c4123034
commit
c5ee14ae6e
@ -113,7 +113,7 @@ struct json_archive;
|
|||||||
template <>
|
template <>
|
||||||
struct json_archive<true> : public json_archive_base<std::ostream, true>
|
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>
|
template<typename T>
|
||||||
static auto promote_to_printable_integer_type(T v) -> decltype(+v)
|
static auto promote_to_printable_integer_type(T v) -> decltype(+v)
|
||||||
|
Loading…
Reference in New Issue
Block a user