diff options
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c index 860466bc1..fddced62d 100644 --- a/src/func.c +++ b/src/func.c @@ -1784,7 +1784,7 @@ static void groupConcatStep( pnsl = (int*)sqlite3_realloc64(pnsl, pGCC->nAccum * sizeof(int)); } if( pnsl!=0 ){ - if( pGCC->nAccum>0 ){ + if( ALWAYS(pGCC->nAccum>0) ){ pnsl[pGCC->nAccum-1] = nSep; } pGCC->pnSepLengths = pnsl; @@ -1796,7 +1796,7 @@ static void groupConcatStep( } #ifndef SQLITE_OMIT_WINDOWFUNC else{ - pGCC->nFirstSepLength = (argc==2)? sqlite3_value_bytes(argv[1]) : 1; + pGCC->nFirstSepLength = sqlite3_value_bytes(argv[1]); } pGCC->nAccum += 1; #endif |