aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-01-10 13:58:23 +0000
committerdrh <drh@noemail.net>2018-01-10 13:58:23 +0000
commite75d1f5290361d7a0de2b10c842ce2983c1ce6c2 (patch)
treec1958f03c7331159cb3bb5f123869fbff29c0ca0 /src/malloc.c
parenta688ca5ea91e7046e1b88397a6fe0b88fb5b420e (diff)
downloadsqlite-e75d1f5290361d7a0de2b10c842ce2983c1ce6c2.tar.gz
sqlite-e75d1f5290361d7a0de2b10c842ce2983c1ce6c2.zip
Tag an unreachable branch using ALWAYS().
FossilOrigin-Name: c42c734f11c58724f5d8b32cb1c92e274be350028868d6ed045b2cfd274c64e7
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c
index ec2d93ac8..d7f9df5ef 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -636,7 +636,7 @@ char *sqlite3DbSpanDup(sqlite3 *db, const char *zStart, const char *zEnd){
int n;
while( sqlite3Isspace(zStart[0]) ) zStart++;
n = (int)(zEnd - zStart);
- while( n>0 && sqlite3Isspace(zStart[n-1]) ) n--;
+ while( ALWAYS(n>0) && sqlite3Isspace(zStart[n-1]) ) n--;
return sqlite3DbStrNDup(db, zStart, n);
}