From 8a3efbbcffc3e1aac220c35d91924db3547d134c Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 25 Sep 2012 14:10:11 -0700 Subject: [PATCH] osd_types: uninit var in ctor pg_query_t CID 717346: Uninitialized scalar field (UNINIT_CTOR)At (2): Non-static class member "epoch_sent" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Samuel Just --- src/osd/osd_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index 679ab7e7c4d66..e8982b2a8d96e 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -1168,7 +1168,7 @@ struct pg_query_t { pg_history_t history; epoch_t epoch_sent; - pg_query_t() : type(-1) {} + pg_query_t() : type(-1), epoch_sent(0) {} pg_query_t(int t, const pg_history_t& h, epoch_t epoch_sent) : type(t), history(h), -- 2.39.5