mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Asserts added that verify that the code works correctly
that ticket #1849 claims is wrong. (CVS 3254) FossilOrigin-Name: d145dc1c4bce403ec967bfd0024002d4de57f833
This commit is contained in:
@@ -590,6 +590,7 @@ static char *displayP3(Op *pOp, char *zTemp, int nTemp){
|
||||
}
|
||||
}
|
||||
}
|
||||
assert( zP3!=0 );
|
||||
return zP3;
|
||||
}
|
||||
#endif
|
||||
@@ -672,6 +673,7 @@ int sqlite3VdbeList(
|
||||
|
||||
pMem->flags = MEM_Static|MEM_Str|MEM_Term;
|
||||
pMem->z = sqlite3OpcodeNames[pOp->opcode]; /* Opcode */
|
||||
assert( pMem->z!=0 );
|
||||
pMem->n = strlen(pMem->z);
|
||||
pMem->type = SQLITE_TEXT;
|
||||
pMem->enc = SQLITE_UTF8;
|
||||
@@ -689,6 +691,7 @@ int sqlite3VdbeList(
|
||||
|
||||
pMem->flags = MEM_Ephem|MEM_Str|MEM_Term; /* P3 */
|
||||
pMem->z = displayP3(pOp, pMem->zShort, sizeof(pMem->zShort));
|
||||
assert( pMem->z!=0 );
|
||||
pMem->n = strlen(pMem->z);
|
||||
pMem->type = SQLITE_TEXT;
|
||||
pMem->enc = SQLITE_UTF8;
|
||||
|
||||
Reference in New Issue
Block a user