]> granicus.if.org Git - apache/commitdiff
Use 'apr_is_empty_table()' instead of testing against 'apr_table_elts(...)->nelts'
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 10 Dec 2012 21:24:59 +0000 (21:24 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 10 Dec 2012 21:24:59 +0000 (21:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1419781 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_env.c

index ab8889af22680da1a083be9d3e658ed1f46e7b6b..5a98c801f384c7ba7b526495a359f5d4eafee0ec 100644 (file)
@@ -152,7 +152,7 @@ static int fixup_env_module(request_rec *r)
     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;
     }