gmtime() really can't even return NULL, can it?
diff --git a/lib/http.c b/lib/http.c
index 4543fae..9d01ef8 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1381,10 +1381,6 @@
 #else
       thistime = gmtime(&data->set.timevalue);
 #endif
-      if(NULL == thistime) {
-        failf(data, "localtime() failed!");
-        return CURLE_OUT_OF_MEMORY;
-      }
 
 #ifdef HAVE_STRFTIME
       /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */