Skip to content

Commit 71f1c0d

Browse files
author
D. Richard Hipp
committed
Add ALWAYS() to an always-true conditional.
1 parent 6f58572 commit 71f1c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memjournal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static int memjrnlTruncate(sqlite3_file *pJfd, sqlite_int64 size){
267267
for(pIter=p->pFirst; ALWAYS(pIter) && iOff<=size; pIter=pIter->pNext){
268268
iOff += p->nChunkSize;
269269
}
270-
if( pIter ){
270+
if( ALWAYS(pIter) ){
271271
memjrnlFreeChunks(pIter->pNext);
272272
pIter->pNext = 0;
273273
}

0 commit comments

Comments
 (0)