diff options
-rw-r--r-- | dbd/apr_dbd_sqlite3.c | 8 | ||||
-rw-r--r-- | test/Makefile.in | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dbd/apr_dbd_sqlite3.c b/dbd/apr_dbd_sqlite3.c index a6312acd..34d9e0f1 100644 --- a/dbd/apr_dbd_sqlite3.c +++ b/dbd/apr_dbd_sqlite3.c @@ -86,7 +86,7 @@ static int dbd_sqlite3_select(apr_pool_t * pool, apr_dbd_t * sql, apr_dbd_result { sqlite3_stmt *stmt = NULL; const char *tail = NULL; - int i, ret, retry_count; + int i, ret, retry_count = 0; size_t num_tuples = 0; int increment = 0; apr_dbd_row_t *row = NULL; @@ -187,8 +187,8 @@ static int dbd_sqlite3_select(apr_pool_t * pool, apr_dbd_t * sql, apr_dbd_result static int dbd_sqlite3_get_row(apr_pool_t * pool, apr_dbd_results_t * res, apr_dbd_row_t ** rowp, int rownum) { - int ret, retry_count, i = 0; - apr_dbd_row_t *row; + int i = 0; + if (rownum == -1) { *rowp = res->next_row; if (*rowp == 0) @@ -232,7 +232,7 @@ static int dbd_sqlite3_query(apr_dbd_t * sql, int *nrows, const char *query) { sqlite3_stmt *stmt = NULL; const char *tail = NULL; - int ret, retry_count = 0, length = 0; + int ret, length = 0; apr_status_t res; apr_pool_t *pool; diff --git a/test/Makefile.in b/test/Makefile.in index 565971cc..eb101720 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -10,7 +10,7 @@ APRUTIL_DOTTED_VERSION=@APRUTIL_DOTTED_VERSION@ APRUTIL_MAJOR_VERSION=@APRUTIL_MAJOR_VERSION@ TARGET_LIB_PATH = ../lib@APRUTIL_LIBNAME@.la -CLEAN_TARGETS = manyfile.bin testfile.txt +CLEAN_TARGETS = manyfile.bin testfile.txt data/sqlite*.db # bring in rules.mk for standard functionality @INCLUDE_RULES@ |