@@ -183,32 +183,32 @@ class AuditLog {
183
183
184
184
bool merge (AuditLog *from, std::string *error);
185
185
186
- std::string m_path1;
187
- std::string m_path2;
188
- std::string m_storage_dir;
189
- std::string m_header;
186
+ std::string m_path1 = std::string( " " ) ;
187
+ std::string m_path2 = std::string( " " ) ;
188
+ std::string m_storage_dir = std::string( " " ) ;
189
+ std::string m_header = std::string( " " ) ;
190
190
191
- AuditLogFormat m_format;
191
+ AuditLogFormat m_format = NotSetAuditLogFormat ;
192
192
193
193
protected:
194
- int m_parts;
194
+ int m_parts = - 1 ;
195
195
int m_defaultParts = AAuditLogPart | BAuditLogPart | CAuditLogPart
196
196
| FAuditLogPart | HAuditLogPart | ZAuditLogPart;
197
197
198
- int m_filePermission;
198
+ int m_filePermission = - 1 ;
199
199
int m_defaultFilePermission = 0640 ;
200
200
201
- int m_directoryPermission;
201
+ int m_directoryPermission = - 1 ;
202
202
int m_defaultDirectoryPermission = 0750 ;
203
203
204
204
private:
205
- AuditLogStatus m_status;
205
+ AuditLogStatus m_status = NotSetLogStatus ;
206
206
207
- AuditLogType m_type;
208
- std::string m_relevant;
207
+ AuditLogType m_type = NotSetAuditLogType ;
208
+ std::string m_relevant = std::string( " " ) ;
209
209
210
- audit_log::writer::Writer *m_writer;
211
- bool m_ctlAuditEngineActive; // rules have at least one action On or RelevantOnly
210
+ audit_log::writer::Writer *m_writer = NULL ;
211
+ bool m_ctlAuditEngineActive = false ; // rules have at least one action On or RelevantOnly
212
212
};
213
213
214
214
0 commit comments