mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix various harmless scan-build warnings.
FossilOrigin-Name: 54be9af4469d7e31ee852f67e5aa32996557c10de654a60103fd165d2fedf311
This commit is contained in:
@ -603,8 +603,10 @@ static int sessionPreupdateHash(
|
||||
** the type byte).
|
||||
*/
|
||||
static int sessionSerialLen(const u8 *a){
|
||||
int e = *a;
|
||||
int e;
|
||||
int n;
|
||||
assert( a!=0 );
|
||||
e = *a;
|
||||
if( e==0 || e==0xFF ) return 1;
|
||||
if( e==SQLITE_NULL ) return 1;
|
||||
if( e==SQLITE_INTEGER || e==SQLITE_FLOAT ) return 9;
|
||||
@ -5450,6 +5452,7 @@ static int sessionChangeMerge(
|
||||
){
|
||||
SessionChange *pNew = 0;
|
||||
int rc = SQLITE_OK;
|
||||
assert( aRec!=0 );
|
||||
|
||||
if( !pExist ){
|
||||
pNew = (SessionChange *)sqlite3_malloc64(sizeof(SessionChange) + nRec);
|
||||
|
Reference in New Issue
Block a user