httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1451615 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Date Fri, 01 Mar 2013 15:24:02 GMT
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);
     }
 }



Mime
View raw message