aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <>2021-03-23 21:02:24 +0000
committerdrh <>2021-03-23 21:02:24 +0000
commit5191ae06ab8fe26060a3bf4ce0f10b791708289a (patch)
tree4d4f66416c5c5b0e07af77f7b2464814aa801d75 /src/printf.c
parent0227d9304d862517e3a306074e7d51c21c2e2956 (diff)
downloadsqlite-5191ae06ab8fe26060a3bf4ce0f10b791708289a.tar.gz
sqlite-5191ae06ab8fe26060a3bf4ce0f10b791708289a.zip
Add an ALWAYS() on a branch that is always taken.
FossilOrigin-Name: 0646d2260c523d368e3f6bc3d110a9011d35ce83bd6751ad412d8fd9a253cb7a
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printf.c b/src/printf.c
index 6f3b5681a..f663e1b1e 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -874,7 +874,7 @@ void sqlite3_str_vappendf(
sqlite3_str_appendall(pAccum, pItem->zName);
}else if( pItem->zAlias ){
sqlite3_str_appendall(pAccum, pItem->zAlias);
- }else if( pItem->pSelect ){
+ }else if( ALWAYS(pItem->pSelect) ){
sqlite3_str_appendf(pAccum, "SUBQUERY %u", pItem->pSelect->selId);
}
length = width = 0;