|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/access/gin/ginbulk.c,v 1.4 2006/07/16 00:54:22 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/access/gin/ginbulk.c,v 1.5 2006/08/29 14:05:44 teodor Exp $ |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
14 | 14 |
|
@@ -245,6 +245,9 @@ ginGetEntry(BuildAccumulator *accum, Datum *value, uint32 *n) { |
245 | 245 | accum->stack=palloc0(sizeof(EntryAccumulator*)*(accum->maxdepth+1)); |
246 | 246 | entry=accum->entries; |
247 | 247 |
|
| 248 | +if (entry==NULL ) |
| 249 | +returnNULL; |
| 250 | + |
248 | 251 | /* find most-left value */ |
249 | 252 | for(;;) { |
250 | 253 | accum->stack[accum->stackpos ]=entry; |
|