Description: Fix gmtime_r retval check
 gmtime_r returns null on failure or a pointer to struct on success
 The calling function expects true on success or false on failure
Author: Bill Blough <devel@blough.us>
Forwarded: https://github.com/pwsafe/pwsafe/pull/93
Last-Update: 2016-04-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/os/linux/pws_time.cpp
+++ b/src/os/linux/pws_time.cpp
@@ -15,7 +15,7 @@
 
 int gmtime64_r(const __time64_t *timep, struct tm *result)
 {
-  return gmtime_r(reinterpret_cast<const time_t *>(timep), result) == 0;
+  return gmtime_r(reinterpret_cast<const time_t *>(timep), result) != 0;
 }
 
 int pws_os::asctime(TCHAR *s, size_t, tm const *t)
