Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E4F9D961 for ; Mon, 10 Dec 2012 21:25:21 +0000 (UTC) Received: (qmail 4879 invoked by uid 500); 10 Dec 2012 21:25:21 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 4816 invoked by uid 500); 10 Dec 2012 21:25:21 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 4809 invoked by uid 99); 10 Dec 2012 21:25:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 21:25:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 21:25:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0A5DC23888CD; Mon, 10 Dec 2012 21:25:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1419781 - /httpd/httpd/trunk/modules/metadata/mod_env.c Date: Mon, 10 Dec 2012 21:24:59 -0000 To: cvs@httpd.apache.org From: jailletc36@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121210212500.0A5DC23888CD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; }