httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1419781 - /httpd/httpd/trunk/modules/metadata/mod_env.c
Date Mon, 10 Dec 2012 21:24:59 GMT
Author: jailletc36
Date: Mon Dec 10 21:24:59 2012
New Revision: 1419781

URL: http://svn.apache.org/viewvc?rev=1419781&view=rev
Log:
Use 'apr_is_empty_table()' instead of testing against 'apr_table_elts(...)->nelts'

Modified:
    httpd/httpd/trunk/modules/metadata/mod_env.c

Modified: httpd/httpd/trunk/modules/metadata/mod_env.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_env.c?rev=1419781&r1=1419780&r2=1419781&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_env.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_env.c Mon Dec 10 21:24:59 2012
@@ -152,7 +152,7 @@ static int fixup_env_module(request_rec 
     env_dir_config_rec *sconf = ap_get_module_config(r->per_dir_config,
                                                      &env_module);
 
-    if (!apr_table_elts(sconf->vars)->nelts) {
+    if (apr_is_empty_table(sconf->vars)) {
         return DECLINED;
     }
 



Mime
View raw message