diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-10-29 15:51:52 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-10-29 15:51:52 -0400 |
commit | bfd3f37be309c3647844aed937e6a66aad5fd3cb (patch) | |
tree | 5bc39a02df05c848eb88e300a25ef83af4cd43b6 /src/backend/utils/adt/tsrank.c | |
parent | 48a1fb23900d73e7d9cb2dc0408c745cd03597a7 (diff) | |
download | postgresql-bfd3f37be309c3647844aed937e6a66aad5fd3cb.tar.gz postgresql-bfd3f37be309c3647844aed937e6a66aad5fd3cb.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/tsrank.c')
-rw-r--r-- | src/backend/utils/adt/tsrank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/tsrank.c b/src/backend/utils/adt/tsrank.c index d61bcdd4266..b0417de1262 100644 --- a/src/backend/utils/adt/tsrank.c +++ b/src/backend/utils/adt/tsrank.c @@ -395,7 +395,7 @@ getWeights(ArrayType *win) int i; float4 *arrdata; - if (win == 0) + if (win == NULL) return weights; if (ARR_NDIM(win) != 1) |