diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-14 14:18:56 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-18 18:08:57 -0600 |
commit | 6358af1715b0184076504f68f4610f4d97c57114 (patch) | |
tree | d23eaabff9eb8e57f041c002a47056333f96f32f /time64.c | |
parent | e63f5cd52c6c3c1a6bfd3378cba9f99dea62b3b2 (diff) | |
download | perl-6358af1715b0184076504f68f4610f4d97c57114.tar.gz |
time64.c: Store fcn return in a variable
This is in preparation for it being used in more than one place
Diffstat (limited to 'time64.c')
-rw-r--r-- | time64.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -467,11 +467,12 @@ struct TM *Perl_localtime64_r (const Time64_T *time, struct TM *local_tm) struct TM gm_tm; Year orig_year; int month_diff; + const bool use_system = SHOULD_USE_SYSTEM_LOCALTIME(*time); assert(local_tm != NULL); /* Use the system localtime() if time_t is small enough */ - if( SHOULD_USE_SYSTEM_LOCALTIME(*time) ) { + if (use_system) { safe_time = (time_t)*time; TIME64_TRACE1("Using system localtime for %lld\n", *time); |