Merge pull request #3707 from unknownbrackets/rtc

Oops, timegm() is supposed to modify its argument
This commit is contained in:
Henrik Rydgård committed 2013-09-09 09:20:35 -07:00
commit 90b0fc11ce
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)