summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbojan <bojan@13f79535-47bb-0310-9956-ffa450edef68>2006-07-24 22:56:46 +0000
committerbojan <bojan@13f79535-47bb-0310-9956-ffa450edef68>2006-07-24 22:56:46 +0000
commitf174ad3fe426d6d8b01d1f343bbee1e9c5ccd735 (patch)
tree2772c2e15bc7a142d0fdd892a7b18fc1ed1cbd83
parent10376bcecd2b4042d7344ff39bfc75b7da04cea4 (diff)
downloadlibapr-util-f174ad3fe426d6d8b01d1f343bbee1e9c5ccd735.tar.gz
Avoid crash when getting column names (by Keisuke Nishida)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@425215 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--dbd/apr_dbd_sqlite3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbd/apr_dbd_sqlite3.c b/dbd/apr_dbd_sqlite3.c
index 450293cd..0e4fca02 100644
--- a/dbd/apr_dbd_sqlite3.c
+++ b/dbd/apr_dbd_sqlite3.c
@@ -191,7 +191,7 @@ static const char *dbd_sqlite3_get_name(const apr_dbd_results_t *res, int n)
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,