aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-08-01 01:07:45 +0000
committerdrh <>2023-08-01 01:07:45 +0000
commitb9894f88b8fa28ceaf17c671941dbdb5d0ca126a (patch)
tree1511e0f1661b84109022c81a4bb3ea1417b44782 /src
parentd192b4441de853d23fd377244dfcfbaa5b246ba7 (diff)
downloadsqlite-b9894f88b8fa28ceaf17c671941dbdb5d0ca126a.tar.gz
sqlite-b9894f88b8fa28ceaf17c671941dbdb5d0ca126a.zip
Remove redundant comparison operator.
FossilOrigin-Name: 018984329892c243b21adb10aa8efc7f49313ecf80477e6b61dc6365f62c489d
Diffstat (limited to 'src')
-rw-r--r--src/vdbemem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbemem.c b/src/vdbemem.c
index 0f5117dad..e25efc977 100644
--- a/src/vdbemem.c
+++ b/src/vdbemem.c
@@ -341,7 +341,7 @@ void sqlite3VdbeMemZeroTerminateIfAble(Mem *pMem){
pMem->flags |= MEM_Term;
return;
}
- }else if( pMem->szMalloc>0 && pMem->szMalloc >= pMem->n+1 ){
+ }else if( pMem->szMalloc >= pMem->n+1 ){
pMem->z[pMem->n] = 0;
pMem->flags |= MEM_Term;
return;