mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user