aboutsummaryrefslogtreecommitdiff
path: root/src/test_func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-08-28 02:26:07 +0000
committerdrh <drh@noemail.net>2008-08-28 02:26:07 +0000
commita85f7e36e8fc5aa88625726b113be6704ce3792a (patch)
tree6c3755bc700a2ec80b91100d77cf2d073c479b88 /src/test_func.c
parent59633aeec2ba9190b966b74ccdb0b7c524eb6bf7 (diff)
downloadsqlite-a85f7e36e8fc5aa88625726b113be6704ce3792a.tar.gz
sqlite-a85f7e36e8fc5aa88625726b113be6704ce3792a.zip
Miscellaneous cleanup in the new pcache code. (CVS 5629)
FossilOrigin-Name: da1777259f53c2e20c7ced06bf6f2a550f0ea0fc
Diffstat (limited to 'src/test_func.c')
-rw-r--r--src/test_func.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test_func.c b/src/test_func.c
index 281238281..20f330718 100644
--- a/src/test_func.c
+++ b/src/test_func.c
@@ -12,7 +12,7 @@
** Code for testing all sorts of SQLite interfaces. This code
** implements new SQL functions used by the test scripts.
**
-** $Id: test_func.c,v 1.12 2008/08/27 15:21:35 drh Exp $
+** $Id: test_func.c,v 1.13 2008/08/28 02:26:07 drh Exp $
*/
#include "sqlite3.h"
#include "tcl.h"
@@ -217,10 +217,7 @@ static void counterFunc(
int nArg, /* Number of function arguments */
sqlite3_value **argv /* Values for all function arguments */
){
- int i;
- int *pCounter;
-
- pCounter = (int*)sqlite3_get_auxdata(pCtx, 0);
+ int *pCounter = (int*)sqlite3_get_auxdata(pCtx, 0);
if( pCounter==0 ){
pCounter = sqlite3_malloc( sizeof(*pCounter) );
if( pCounter==0 ){