Skip to content

Commit

Permalink
Update log.cpp
Browse files Browse the repository at this point in the history
fix memset
  • Loading branch information
Evan Zhao committed Jan 21, 2018
1 parent 462e47f commit debcb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fflib/base/log.cpp
Expand Up @@ -138,7 +138,7 @@ log_t::log_t(int level_, const string& all_class_, const string& path_, const st
m_file_name_index(0),
m_line_num(0)
{
::memset(&m_last_create_dir_tm, sizeof(m_last_create_dir_tm), 0);
::memset(&m_last_create_dir_tm, 0, sizeof(m_last_create_dir_tm));
m_class_set_history.push_back(m_enable_class_set);

for (int i = 0; i <= level_; ++i)
Expand Down

0 comments on commit debcb95

Please sign in to comment.