/ Check-in [3dcdeae7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an uninitialized variable in AggReset() (CVS 432)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3dcdeae7f620736c1eae52ad78db1efb886ea9c3
User & Date: drh 2002-03-18 13:03:55
Context
2002-03-19
23:51
Version 2.4.2 (CVS 433) check-in: b0805b60 user: drh tags: trunk
2002-03-18
13:03
Fix an uninitialized variable in AggReset() (CVS 432) check-in: 3dcdeae7 user: drh tags: trunk
2002-03-14
14:33
Bug fix: allow ROWID as a column in SELECT statements where the FROM clause includes views which are flattened. (CVS 431) check-in: a3a360b3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/vdbe.c.

    26     26   ** type to the other occurs as necessary.
    27     27   ** 
    28     28   ** Most of the code in this file is taken up by the sqliteVdbeExec()
    29     29   ** function which does the work of interpreting a VDBE program.
    30     30   ** But other routines are also provided to help in building up
    31     31   ** a program instruction by instruction.
    32     32   **
    33         -** $Id: vdbe.c,v 1.134 2002/03/10 21:21:00 drh Exp $
           33  +** $Id: vdbe.c,v 1.135 2002/03/18 13:03:55 drh Exp $
    34     34   */
    35     35   #include "sqliteInt.h"
    36     36   #include <ctype.h>
    37     37   
    38     38   /*
    39     39   ** The following global variable is incremented every time a cursor
    40     40   ** moves, either by the OP_MoveTo or the OP_Next opcode.  The test
................................................................................
   656    656     for(p = sqliteHashFirst(&pAgg->hash); p; p = sqliteHashNext(p)){
   657    657       AggElem *pElem = sqliteHashData(p);
   658    658       assert( pAgg->apFunc!=0 );
   659    659       for(i=0; i<pAgg->nMem; i++){
   660    660         Mem *pMem = &pElem->aMem[i];
   661    661         if( pAgg->apFunc[i] && (pMem->s.flags & STK_AggCtx)!=0 ){
   662    662           sqlite_func ctx;
          663  +        ctx.pFunc = pAgg->apFunc[i];
   663    664           ctx.s.flags = STK_Null;
   664    665           ctx.z = 0;
   665    666           ctx.pAgg = pMem->z;
   666    667           ctx.cnt = pMem->s.i;
   667    668           ctx.isStep = 0;
   668    669           ctx.isError = 0;
   669    670           (*pAgg->apFunc[i]->xFinalize)(&ctx);