aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-08-25 13:10:27 +0000
committerdrh <drh@noemail.net>2009-08-25 13:10:27 +0000
commitff104c17b7e3eb31f2d2e9c1682a323cf17263d2 (patch)
treedc3f74fc26605c5216704aefb4c60e12eb723bed /src
parentfd3ca1c6800ac3570b5091427232e9a62dd92fbd (diff)
downloadsqlite-ff104c17b7e3eb31f2d2e9c1682a323cf17263d2.tar.gz
sqlite-ff104c17b7e3eb31f2d2e9c1682a323cf17263d2.zip
Fix an uninitialized variable in sqlite3VdbeIdxRowid().
FossilOrigin-Name: 6e787e18fa87f5463bf62cd91a0c0855099693f0
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 436fcf768..7726f1ea5 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -2613,9 +2613,7 @@ int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
assert( (nCellKey & SQLITE_MAX_U32)==(u64)nCellKey );
/* Read in the complete content of the index entry */
- m.flags = 0;
- m.db = db;
- m.zMalloc = 0;
+ memset(&m, 0, sizeof(m));
rc = sqlite3VdbeMemFromBtree(pCur, 0, (int)nCellKey, 1, &m);
if( rc ){
return rc;