summaryrefslogtreecommitdiff
path: root/src/tool_filetime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_filetime.c')
-rw-r--r--src/tool_filetime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_filetime.c b/src/tool_filetime.c
index 8907bcda6..424b8cc7e 100644
--- a/src/tool_filetime.c
+++ b/src/tool_filetime.c
@@ -88,7 +88,7 @@ int getfiletime(const char *filename, curl_off_t *stamp)
#if defined(HAVE_UTIME) || defined(HAVE_UTIMES) || defined(_WIN32)
void setfiletime(curl_off_t filetime, const char *filename)
{
- if(filetime >= 0) {
+ if(filetime) {
/* Windows utime() may attempt to adjust the Unix GMT file time by a daylight
saving time offset and since it is GMT that is bad behavior. When we have
access to a 64-bit type we can bypass utime and set the times directly. */