diff options
author | Underground78 <underground78@users.sourceforge.net> | 2016-01-09 13:23:59 +0300 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2016-01-14 23:53:50 +0300 |
commit | 0d42da505c83bfacad0e9ab2619e2ce0a825c126 (patch) | |
tree | 5452625edf1ac777121bbc30ef9a39badab1d5c6 | |
parent | 946885b210a1052cd787090796d8067b6df65e6a (diff) |
Fix the date comparison function.
Days were not properly compared due to a typo.
Found with Coverity.
-rw-r--r-- | TimXmlRpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TimXmlRpc.cpp b/TimXmlRpc.cpp index 20f2317..a59cb58 100644 --- a/TimXmlRpc.cpp +++ b/TimXmlRpc.cpp @@ -692,7 +692,7 @@ static std::string xmlEncode(const char* s) static bool tmEq(struct tm const& t1, struct tm const& t2) { return t1.tm_sec == t2.tm_sec && t1.tm_min == t2.tm_min && - t1.tm_hour == t2.tm_hour && t1.tm_mday == t1.tm_mday && + t1.tm_hour == t2.tm_hour && t1.tm_mday == t2.tm_mday && t1.tm_mon == t2.tm_mon && t1.tm_year == t2.tm_year; } |