mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Fix comparisons of pointers with zero to compare with NULL instead.
Per C standard, these are semantically the same thing; but saying NULL when you mean NULL is good for readability. Marti Raudsepp, per results of INRIA's Coccinelle.
This commit is contained in:
@@ -395,7 +395,7 @@ getWeights(ArrayType *win)
|
||||
int i;
|
||||
float4 *arrdata;
|
||||
|
||||
if (win == 0)
|
||||
if (win == NULL)
|
||||
return weights;
|
||||
|
||||
if (ARR_NDIM(win) != 1)
|
||||
|
Reference in New Issue
Block a user