From 192ad63bd765d448e91389c6ff1d75f8b18bb268 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Wed, 7 Jan 2004 18:56:30 +0000 Subject: More janitorial work: remove the explicit casting of NULL literals to a pointer type when it is not necessary to do so. For future reference, casting NULL to a pointer type is only necessary when (a) invoking a function AND either (b) the function has no prototype OR (c) the function is a varargs function. --- src/backend/executor/execMain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index f84b4dd690e..cf581907a4f 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.224 2003/12/28 21:57:36 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.225 2004/01/07 18:56:26 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -782,7 +782,7 @@ InitPlan(QueryDesc *queryDesc, bool explainOnly) * * If EXPLAIN, skip creating the "into" relation. */ - intoRelationDesc = (Relation) NULL; + intoRelationDesc = NULL; if (do_select_into && !explainOnly) { @@ -1076,7 +1076,7 @@ lnext: ; * * Also, extract all the junk information we need. */ - if ((junkfilter = estate->es_junkFilter) != (JunkFilter *) NULL) + if ((junkfilter = estate->es_junkFilter) != NULL) { Datum datum; HeapTuple newTuple; -- cgit v1.2.3