From e9aa07f660a3663281416fd5d391bcee78a117ec Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 28 Sep 2001 11:04:43 +0000 Subject: filetime should be -1 if the remote time was unknown as 0 is actually a valid time. we now store the filetime as a long to know for sure it can hold -1 (there exist some unsigned time_t cases) --- lib/getinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/getinfo.c') diff --git a/lib/getinfo.c b/lib/getinfo.c index 88a139e3a..6149073ac 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -46,7 +46,7 @@ CURLcode Curl_initinfo(struct SessionHandle *data) info->httpcode = 0; info->httpversion=0; - info->filetime=0; + info->filetime=-1; /* -1 is an illegal time and thus means unknown */ return CURLE_OK; } -- cgit v1.2.3