aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2000-06-06 19:18:23 +0000
committerdrh <drh@noemail.net>2000-06-06 19:18:23 +0000
commit6b922e545f8ce4b19154e6fbfb0fd7130359f9f0 (patch)
tree3b84cee9a8bb035380d1232b25db16fb940cfe0c /src
parent49c8780abcce8295f7f710aeafb55b6fdfab97a4 (diff)
downloadsqlite-6b922e545f8ce4b19154e6fbfb0fd7130359f9f0.tar.gz
sqlite-6b922e545f8ce4b19154e6fbfb0fd7130359f9f0.zip
:-) (CVS 61)
FossilOrigin-Name: 25984b4d3ce0f94fa98a159d840cc7bd4e8bc1ab
Diffstat (limited to 'src')
-rw-r--r--src/vdbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbe.c b/src/vdbe.c
index e80a1d4e7..f159fef54 100644
--- a/src/vdbe.c
+++ b/src/vdbe.c
@@ -41,7 +41,7 @@
** But other routines are also provided to help in building up
** a program instruction by instruction.
**
-** $Id: vdbe.c,v 1.21 2000/06/06 17:27:06 drh Exp $
+** $Id: vdbe.c,v 1.22 2000/06/06 19:18:24 drh Exp $
*/
#include "sqliteInt.h"
#include <unistd.h>
@@ -2820,7 +2820,7 @@ int sqliteVdbeExec(
sqliteFree(p->agg.apHash);
p->agg.apHash = 0;
p->agg.pCurrent = p->agg.pFirst;
- }else if( p->agg.pCurrent==p->agg.pFirst ){
+ }else if( p->agg.pCurrent==p->agg.pFirst && p->agg.pCurrent!=0 ){
int i;
AggElem *pElem = p->agg.pCurrent;
for(i=0; i<p->agg.nMem; i++){