mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +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:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.89 2004/01/06 04:31:01 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/nodeIndexscan.c,v 1.90 2004/01/07 18:56:26 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -758,9 +758,9 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
|
||||
lossyflags = lfirst(indxlossy);
|
||||
indxlossy = lnext(indxlossy);
|
||||
n_keys = length(quals);
|
||||
scan_keys = (n_keys <= 0) ? (ScanKey) NULL :
|
||||
scan_keys = (n_keys <= 0) ? NULL :
|
||||
(ScanKey) palloc(n_keys * sizeof(ScanKeyData));
|
||||
run_keys = (n_keys <= 0) ? (ExprState **) NULL :
|
||||
run_keys = (n_keys <= 0) ? NULL :
|
||||
(ExprState **) palloc(n_keys * sizeof(ExprState *));
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user