mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601: Fixed problem with uninitialized members
This commit is contained in:
parent
593b334d5e
commit
e8fe7f0304
1 changed files with 4 additions and 1 deletions
|
@ -586,13 +586,16 @@ ISO8601p::ISO8601p ()
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ISO8601p::ISO8601p (time_t input)
|
ISO8601p::ISO8601p (time_t input)
|
||||||
: _value (input)
|
|
||||||
{
|
{
|
||||||
|
clear ();
|
||||||
|
_value = input;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ISO8601p::ISO8601p (const std::string& input)
|
ISO8601p::ISO8601p (const std::string& input)
|
||||||
{
|
{
|
||||||
|
clear ();
|
||||||
|
|
||||||
if (Lexer::isAllDigits (input))
|
if (Lexer::isAllDigits (input))
|
||||||
{
|
{
|
||||||
time_t value = (time_t) strtol (input.c_str (), NULL, 10);
|
time_t value = (time_t) strtol (input.c_str (), NULL, 10);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue