Fixing couple issues reported by Coverity.

This commit is contained in:
Robin Sommer 2017-04-08 09:57:45 -07:00
parent a3b664c77d
commit 7826cbdfb6
2 changed files with 3 additions and 0 deletions

View file

@ -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);
%}

View file

@ -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()