apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r425215 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
Date Mon, 24 Jul 2006 22:56:47 GMT
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,



Mime
View raw message