mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix a bunch of missing class member initializations
This commit is contained in:
parent
7374688d0d
commit
3b0e8ee6f1
16 changed files with 40 additions and 41 deletions
18
src/File.h
18
src/File.h
|
@ -108,17 +108,17 @@ protected:
|
|||
// Raises a file_opened event.
|
||||
void RaiseOpenEvent();
|
||||
|
||||
FILE* f;
|
||||
FILE* f = nullptr;
|
||||
TypePtr t;
|
||||
char* name;
|
||||
char* access;
|
||||
detail::Attributes* attrs;
|
||||
double open_time;
|
||||
bool is_open; // whether the file is open in a general sense
|
||||
bool buffered;
|
||||
bool raw_output;
|
||||
char* name = nullptr;
|
||||
char* access = nullptr;
|
||||
detail::Attributes* attrs = nullptr;
|
||||
double open_time = 0.0;
|
||||
bool is_open = false; // whether the file is open in a general sense
|
||||
bool buffered = false;
|
||||
bool raw_output = false;
|
||||
|
||||
static const int MIN_BUFFER_SIZE = 1024;
|
||||
static constexpr int MIN_BUFFER_SIZE = 1024;
|
||||
|
||||
private:
|
||||
static std::list<std::pair<std::string, File*>> open_files;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue