error handling

pEpMIME
Volker Birk 3 years ago
parent b296d2bd00
commit c5657a0c53

@ -390,7 +390,14 @@ int mkstemp(char *templ)
DYNAMIC_API time_t timegm(timestamp *timeptr)
{
assert(timeptr);
if (!timeptr)
return -1;
time_t result = _mkgmtime((struct tm *) timeptr);
if (result == -1)
return -1;
return result + timeptr->tm_gmtoff;
}

Loading…
Cancel
Save