aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 51574113..bcb3f934 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1322,7 +1322,8 @@ get_date_str (char *date)
1322 struct tm *pNow; 1322 struct tm *pNow;
1323#endif 1323#endif
1324 1324
1325 time (&t); 1325 if ((time_t) -1 == time (&t))
1326 return false;
1326#if defined(HAVE_C11_GMTIME_S) 1327#if defined(HAVE_C11_GMTIME_S)
1327 if (NULL == gmtime_s (&t, 1328 if (NULL == gmtime_s (&t,
1328 &now)) 1329 &now))