diff options
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index dabee7beb..7895ae8f5 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1187,8 +1187,8 @@ fhandler_base::utimens_fs (const struct timespec *tvp) tmp[1] = tmp[0] = timeofday; else { - if ((tmp[0].tv_nsec < UTIME_NOW || tmp[0].tv_nsec > 999999999L) - || (tmp[1].tv_nsec < UTIME_NOW || tmp[1].tv_nsec > 999999999L)) + if ((tvp[0].tv_nsec < UTIME_NOW || tvp[0].tv_nsec > 999999999L) + || (tvp[1].tv_nsec < UTIME_NOW || tvp[1].tv_nsec > 999999999L)) { set_errno (EINVAL); return -1; |