From c3a153afed84e29dac664bdc6123724a9e3a906f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 5 Jun 2004 19:48:09 +0000 Subject: Tweak palloc/repalloc to allow zero bytes to be requested, as per recent proposal. Eliminate several dozen now-unnecessary hacks to avoid palloc(0). (It's likely there are more that I didn't find.) --- src/backend/executor/execQual.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/executor/execQual.c') diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c index e53820efed0..8ada5e6faf2 100644 --- a/src/backend/executor/execQual.c +++ b/src/backend/executor/execQual.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.162 2004/06/01 03:28:41 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.163 2004/06/05 19:48:08 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2129,8 +2129,6 @@ ExecEvalRow(RowExprState *rstate, /* Allocate workspace */ nargs = list_length(rstate->args); - if (nargs == 0) /* avoid palloc(0) if no fields */ - nargs = 1; values = (Datum *) palloc(nargs * sizeof(Datum)); nulls = (char *) palloc(nargs * sizeof(char)); -- cgit v1.2.3