aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/json1.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2021-04-14 12:11:39 +0000
committerdan <Dan Kennedy>2021-04-14 12:11:39 +0000
commit8505d73dc0e4f1319578f13648e09fb864db1937 (patch)
treedf72b1b2b22817c0c597e2c916aba6a89cd6d601 /ext/misc/json1.c
parentf817189e1b35a15c187c7515a78e12894096366c (diff)
downloadsqlite-8505d73dc0e4f1319578f13648e09fb864db1937.tar.gz
sqlite-8505d73dc0e4f1319578f13648e09fb864db1937.zip
Fix a potential crash when using json_group_array() as a window function.
FossilOrigin-Name: 3c266690c753d093c2cb74138a46ed69276d85cd119d687a6858c84211e84eaf
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r--ext/misc/json1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c
index 5863cffbc..76c6e40f8 100644
--- a/ext/misc/json1.c
+++ b/ext/misc/json1.c
@@ -1898,8 +1898,8 @@ static void jsonArrayStep(
jsonAppendChar(pStr, '[');
}else if( pStr->nUsed>1 ){
jsonAppendChar(pStr, ',');
- pStr->pCtx = ctx;
}
+ pStr->pCtx = ctx;
jsonAppendValue(pStr, argv[0]);
}
}