]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd_types: uninit var in ctor pg_query_t
authorSamuel Just <sam.just@inktank.com>
Tue, 25 Sep 2012 21:10:11 +0000 (14:10 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 25 Sep 2012 21:10:11 +0000 (14:10 -0700)
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>
src/osd/osd_types.h

index 679ab7e7c4d666b97c9b27f62ef330bbfa786dab..e8982b2a8d96ef74d284d8122e77fa19cf077b54 100644 (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),