From e8fe7f030454297a6f6d464a90562b5bcd3c9818 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 12 Aug 2015 10:07:43 -0400 Subject: [PATCH] ISO8601: Fixed problem with uninitialized members --- src/ISO8601.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index 7d85ef10c..f40232906 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -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);