aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-05-22 13:09:50 +0000
committerdrh <drh@noemail.net>2015-05-22 13:09:50 +0000
commitafe028a8153e8d10872f9363fc95c5bb8c896d57 (patch)
tree133cff0fa195eb932bbad0b5761af1096f3625fd /src/insert.c
parent499e15bee11807db8e9d5ef8bb10505ad4fc512e (diff)
downloadsqlite-afe028a8153e8d10872f9363fc95c5bb8c896d57.tar.gz
sqlite-afe028a8153e8d10872f9363fc95c5bb8c896d57.zip
Fix two faulty assert statements discovered by fuzzing.
FossilOrigin-Name: 799817bfb2bc95963c0e0d70063c4cb15c94ef74
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index c794ae4f5..18dbfed8b 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -42,7 +42,7 @@ void sqlite3OpenTable(
}else{
Index *pPk = sqlite3PrimaryKeyIndex(pTab);
assert( pPk!=0 );
- assert( pPk->tnum=pTab->tnum );
+ assert( pPk->tnum==pTab->tnum );
sqlite3VdbeAddOp3(v, opcode, iCur, pPk->tnum, iDb);
sqlite3VdbeSetP4KeyInfo(pParse, pPk);
VdbeComment((v, "%s", pTab->zName));