diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-14 22:02:04 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-14 22:02:04 +0000 |
commit | 522095959a169867c845ab5484e259bc173341ef (patch) | |
tree | e96a60dee16299852dd6cf39f878df9c8904e0c0 /time/unix | |
parent | 19f8efb423663bd2d24b5d4e24e92e6b2b16af45 (diff) | |
download | libapr-522095959a169867c845ab5484e259bc173341ef.tar.gz |
Fix detection of tm_gmtoff in struct tm, and remove some warnings.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61522 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time/unix')
-rw-r--r-- | time/unix/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/unix/time.c b/time/unix/time.c index 31f056106..c399f56d3 100644 --- a/time/unix/time.c +++ b/time/unix/time.c @@ -146,11 +146,11 @@ apr_status_t apr_explode_gmt(apr_exploded_time_t *result, apr_time_t input) apr_status_t apr_explode_localtime(apr_exploded_time_t *result, apr_time_t input) { time_t mango = input / APR_USEC_PER_SEC; - apr_int32_t offs; + apr_int32_t offs = 0; #if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) struct tm mangotm; - localtime_r(&mangotm, &mango); + localtime_r(&mango, &mangotm); /* XXX - Add support for Solaris */ #ifdef HAVE_GMTOFF offs = mangotm.tm_gmtoff; |