diff options
author | dan <Dan Kennedy> | 2021-04-14 12:11:39 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2021-04-14 12:11:39 +0000 |
commit | 8505d73dc0e4f1319578f13648e09fb864db1937 (patch) | |
tree | df72b1b2b22817c0c597e2c916aba6a89cd6d601 /ext/misc/json1.c | |
parent | f817189e1b35a15c187c7515a78e12894096366c (diff) | |
download | sqlite-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.c | 2 |
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]); } } |