CID 717341: Uninitialized pointer field (UNINIT_CTOR)
At (2): Non-static class member "state_name" is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Sage Weil <sage@inktank.com>
const char *state_name;
utime_t enter_time;
const char *get_state_name() { return state_name; }
- NamedState() : enter_time(ceph_clock_now(g_ceph_context)) {}
+ NamedState() : state_name(NULL), enter_time(ceph_clock_now(g_ceph_context)) {}
virtual ~NamedState() {}
};