diff options
Diffstat (limited to 'src/vtab.c')
-rw-r--r-- | src/vtab.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vtab.c b/src/vtab.c index c7a8a5a33..faee4ae47 100644 --- a/src/vtab.c +++ b/src/vtab.c @@ -519,6 +519,7 @@ static int vtabCallConstructor( }else if( ALWAYS(pVTable->pVtab) ){ /* Justification of ALWAYS(): A correct vtab constructor must allocate ** the sqlite3_vtab object if successful. */ + memset(pVTable->pVtab, 0, sizeof(pVTable->pVtab[0])); pVTable->pVtab->pModule = pMod->pModule; pVTable->nRef = 1; if( sCtx.pTab ){ |