From 5e3f4cf532c6da3957f50e1579936e3cb1d70e2c Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 26 Jun 2014 15:35:48 +0100 Subject: [PATCH] [era] Provide a default ctr for era_detail to quieten coverity --- era/era_detail.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/era/era_detail.h b/era/era_detail.h index 8cb8b06..4269afd 100644 --- a/era/era_detail.h +++ b/era/era_detail.h @@ -13,6 +13,11 @@ namespace era { } __attribute__ ((packed)); struct era_detail { + era_detail() + : nr_bits(0), + writeset_root(0) { + } + uint32_t nr_bits; uint64_t writeset_root; };