aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-11-13 00:39:48 +0000
committerBruce Momjian <bruce@momjian.us>2002-11-13 00:39:48 +0000
commit9b12ab6d5dd6c40ac112456c820a8dc199fc6e16 (patch)
tree9ee7a9977161f5343d4ffcf6b8c5453c963aae2e /src/backend/access/gist/gist.c
parentaaa3a0caa6c3e4dacd950e2dc3c1691222c50965 (diff)
downloadpostgresql-9b12ab6d5dd6c40ac112456c820a8dc199fc6e16.tar.gz
postgresql-9b12ab6d5dd6c40ac112456c820a8dc199fc6e16.zip
Add new palloc0 call as merge of palloc and MemSet(0).
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 6c76e025706..6591e766448 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.98 2002/11/11 03:02:18 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.99 2002/11/13 00:39:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1316,10 +1316,8 @@ gistSplit(Relation r,
*/
if (r->rd_att->natts > 1)
{
- v.spl_idgrp = (int *) palloc(sizeof(int) * (*len + 1));
- MemSet((void *) v.spl_idgrp, 0, sizeof(int) * (*len + 1));
- v.spl_grpflag = (char *) palloc(sizeof(char) * (*len + 1));
- MemSet((void *) v.spl_grpflag, 0, sizeof(char) * (*len + 1));
+ v.spl_idgrp = (int *) palloc0(sizeof(int) * (*len + 1));
+ v.spl_grpflag = (char *) palloc0(sizeof(char) * (*len + 1));
v.spl_ngrp = (int *) palloc(sizeof(int) * (*len + 1));
MaxGrpId = gistfindgroup(giststate, (GISTENTRY *) VARDATA(entryvec), &v);