From: Jim Jagielski Date: Fri, 1 Mar 2013 15:24:02 +0000 (+0000) Subject: streamline TZ check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e927798dc5aeadc605ebbb08e5063941f39b51a5;p=thirdparty%2Fapache%2Fhttpd.git streamline TZ check git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1451615 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/eventopt/eventopt.c b/server/mpm/eventopt/eventopt.c index 4c104b5d8e1..9765d79b579 100644 --- a/server/mpm/eventopt/eventopt.c +++ b/server/mpm/eventopt/eventopt.c @@ -2227,10 +2227,8 @@ static void force_set_tz(apr_pool_t *p) { * */ char *v = NULL; - apr_status_t rv; - rv = apr_env_get(&v, "TZ", p); - if (v == NULL || rv == APR_ENOENT) { + if (apr_env_get(&v, "TZ", p) != APR_SUCCESS) { apr_env_set("TZ", "UTC+0", p); } }