mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Fixing couple issues reported by Coverity.
This commit is contained in:
parent
a3b664c77d
commit
7826cbdfb6
2 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,7 @@ function time_from_lanman(t: SMB_time, d: SMB_date, tz: uint16): Val
|
|||
lTime.tm_mday = ${d.day};
|
||||
lTime.tm_mon = ${d.month};
|
||||
lTime.tm_year = 1980 + ${d.year};
|
||||
lTime.tm_isdst = -1;
|
||||
double lResult = mktime(&lTime);
|
||||
return new Val(lResult + tz, TYPE_TIME);
|
||||
%}
|
||||
|
|
|
@ -50,6 +50,8 @@ Ascii::Ascii(ReaderFrontend *frontend) : ReaderBackend(frontend)
|
|||
{
|
||||
mtime = 0;
|
||||
suppress_warnings = false;
|
||||
fail_on_file_problem = false;
|
||||
fail_on_invalid_lines = false;
|
||||
}
|
||||
|
||||
Ascii::~Ascii()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue