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 <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2012-09-25 14:10:11 -07:00
parent 3e4f3794cb
commit 8a3efbbcff

View File

@ -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),