ISO8601: Fixed problem with uninitialized members

This commit is contained in:
Paul Beckingham 2015-08-12 10:07:43 -04:00
parent 593b334d5e
commit e8fe7f0304

View file

@ -586,13 +586,16 @@ ISO8601p::ISO8601p ()
////////////////////////////////////////////////////////////////////////////////
ISO8601p::ISO8601p (time_t input)
: _value (input)
{
clear ();
_value = input;
}
////////////////////////////////////////////////////////////////////////////////
ISO8601p::ISO8601p (const std::string& input)
{
clear ();
if (Lexer::isAllDigits (input))
{
time_t value = (time_t) strtol (input.c_str (), NULL, 10);