You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2006/07/25 00:56:47 UTC

svn commit: r425215 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c

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,