aboutsummaryrefslogtreecommitdiff
path: root/src/auth.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-09-08 01:14:48 +0000
committerdrh <drh@noemail.net>2009-09-08 01:14:48 +0000
commit3e9ca09453ea4bde487be8365a8e369f1aa809ab (patch)
treee5d97b8091389faab037235d53caef09a770793e /src/auth.c
parent417168ade2f2c96a1e5800de2ca75f968de5db76 (diff)
downloadsqlite-3e9ca09453ea4bde487be8365a8e369f1aa809ab.tar.gz
sqlite-3e9ca09453ea4bde487be8365a8e369f1aa809ab.zip
Code simplifications, especially to the pseudo-table logic, and comment
improvements. FossilOrigin-Name: 52449a9569b7142095cc88ee208b31cc59a3cab4
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.c b/src/auth.c
index 4e5bd164f..ec3514257 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -128,7 +128,7 @@ void sqlite3AuthRead(
pTab = pParse->pTriggerTab;
}else{
assert( pTabList );
- for(iSrc=0; iSrc<pTabList->nSrc; iSrc++){
+ for(iSrc=0; ALWAYS(iSrc<pTabList->nSrc); iSrc++){
if( pExpr->iTable==pTabList->a[iSrc].iCursor ){
pTab = pTabList->a[iSrc].pTab;
break;