1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix an uninitialized variable in AggReset() (CVS 432)

FossilOrigin-Name: 3dcdeae7f620736c1eae52ad78db1efb886ea9c3
This commit is contained in:
drh
2002-03-18 13:03:54 +00:00
parent 84e5920738
commit f2d74ffb74
3 changed files with 9 additions and 8 deletions

View File

@@ -30,7 +30,7 @@
** But other routines are also provided to help in building up
** a program instruction by instruction.
**
** $Id: vdbe.c,v 1.134 2002/03/10 21:21:00 drh Exp $
** $Id: vdbe.c,v 1.135 2002/03/18 13:03:55 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -660,6 +660,7 @@ static void AggReset(Agg *pAgg){
Mem *pMem = &pElem->aMem[i];
if( pAgg->apFunc[i] && (pMem->s.flags & STK_AggCtx)!=0 ){
sqlite_func ctx;
ctx.pFunc = pAgg->apFunc[i];
ctx.s.flags = STK_Null;
ctx.z = 0;
ctx.pAgg = pMem->z;