@@ -183,32 +183,32 @@ class AuditLog {
183183
184184 bool merge (AuditLog *from, std::string *error);
185185
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( " " ) ;
190190
191- AuditLogFormat m_format;
191+ AuditLogFormat m_format = NotSetAuditLogFormat ;
192192
193193 protected:
194- int m_parts;
194+ int m_parts = - 1 ;
195195 int m_defaultParts = AAuditLogPart | BAuditLogPart | CAuditLogPart
196196 | FAuditLogPart | HAuditLogPart | ZAuditLogPart;
197197
198- int m_filePermission;
198+ int m_filePermission = - 1 ;
199199 int m_defaultFilePermission = 0640 ;
200200
201- int m_directoryPermission;
201+ int m_directoryPermission = - 1 ;
202202 int m_defaultDirectoryPermission = 0750 ;
203203
204204 private:
205- AuditLogStatus m_status;
205+ AuditLogStatus m_status = NotSetLogStatus ;
206206
207- AuditLogType m_type;
208- std::string m_relevant;
207+ AuditLogType m_type = NotSetAuditLogType ;
208+ std::string m_relevant = std::string( " " ) ;
209209
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
212212};
213213
214214
0 commit comments