DataFlash: fix coverity warnings - add param init in constructor

This commit is contained in:
Grant Morphett 2015-07-29 17:24:27 +10:00 committed by Randy Mackay
parent 4c1de1abf3
commit 0de992c5f9
2 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,8 @@ public:
FUNCTOR_TYPEDEF(print_mode_fn, void, AP_HAL::BetterStream*, uint8_t);
DataFlash_Backend(DataFlash_Class &front) :
_front(front)
_front(front),
_structures(NULL)
{ }
virtual bool CardInserted(void) = 0;

View File

@ -38,6 +38,7 @@ DataFlash_File::DataFlash_File(DataFlash_Class &front, const char *log_directory
DataFlash_Backend(front),
_write_fd(-1),
_read_fd(-1),
_read_fd_log_num(0),
_read_offset(0),
_write_offset(0),
_initialised(false),