You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2013/03/01 16:24:02 UTC
svn commit: r1451615 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Author: jim
Date: Fri Mar 1 15:24:02 2013
New Revision: 1451615
URL: http://svn.apache.org/r1451615
Log:
streamline TZ check
Modified:
httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Modified: httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/eventopt/eventopt.c?rev=1451615&r1=1451614&r2=1451615&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/eventopt/eventopt.c (original)
+++ httpd/httpd/trunk/server/mpm/eventopt/eventopt.c Fri Mar 1 15:24:02 2013
@@ -2227,10 +2227,8 @@ static void force_set_tz(apr_pool_t *p)
* <http://www.gnu.org/s/hello/manual/libc/TZ-Variable.html>
*/
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);
}
}