Oops, timegm() is supposed to modify its argument.

This commit is contained in:
Unknown W. Brackets committed 2013-09-09 08:50:49 -07:00
1 parent 86caa700d0
commit 65a1350f32
1 file changed
+1 -3
+1 -3
View File
@@ -75,9 +75,7 @@ void gettimeofday(timeval *tv, void *ignore)
time_t rtc_timegm(struct tm *tm)
{
struct tm modified;
memcpy(&modified, tm, sizeof(modified));
return _mkgmtime(&modified);
return _mkgmtime(tm);
}
#elif defined(__GLIBC__) && !defined(ANDROID)