diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-03 07:10:19 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-03 07:10:19 +0000 |
commit | f1258370306ccbfddb425a268138dabf5f18ebd6 (patch) | |
tree | 1153d936d9c6eb07a464c9e73dac5a43038ede4e /lib | |
parent | 5a6d8bdbb4dee335ac4611737c5cbbe65b12bf82 (diff) | |
download | coreutils-f1258370306ccbfddb425a268138dabf5f18ebd6.tar.xz |
Import from gnulib.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mktime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mktime.c b/lib/mktime.c index b3d90824f..16f5b9a5a 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -462,8 +462,9 @@ __mktime_internal (struct tm *tp, t2 = t1 + sec_adjustment; if (((t1 < t) != (sec_requested < 0)) | ((t2 < t1) != (sec_adjustment < 0)) - | ! (*convert) (&t, &tm)) + | ! (*convert) (&t2, &tm)) return -1; + t = t2; } *tp = tm; |