From commits-return-7880-apmail-apr-commits-archive=apr.apache.org@apr.apache.org Mon Jul 24 22:57:16 2006 Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 57236 invoked from network); 24 Jul 2006 22:57:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 22:57:15 -0000 Received: (qmail 30915 invoked by uid 500); 24 Jul 2006 22:57:09 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 30865 invoked by uid 500); 24 Jul 2006 22:57:08 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 30823 invoked by uid 99); 24 Jul 2006 22:57:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 15:57:08 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 15:57:07 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 7CFD41A981A; Mon, 24 Jul 2006 15:56:47 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r425215 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c Date: Mon, 24 Jul 2006 22:56:47 -0000 To: commits@apr.apache.org From: bojan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060724225647.7CFD41A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: bojan Date: Mon Jul 24 15:56:46 2006 New Revision: 425215 URL: http://svn.apache.org/viewvc?rev=425215&view=rev Log: Avoid crash when getting column names (by Keisuke Nishida) Modified: apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c Modified: apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c?rev=425215&r1=425214&r2=425215&view=diff ============================================================================== --- apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c (original) +++ apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c Mon Jul 24 15:56:46 2006 @@ -191,7 +191,7 @@ return NULL; } - return res->next_row->columns[n]->name; + return res->col_names[n]; } static int dbd_sqlite3_get_row(apr_pool_t *pool, apr_dbd_results_t *res,