summaryrefslogtreecommitdiff
path: root/src/backend/postmaster/postmaster.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-12-02 08:39:24 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-12-02 08:39:24 +0100
commitec782f56b0c30ef493e8356b46e1131612f01d9f (patch)
treefaf0c5226db71ec50e79978135f493d853882b76 /src/backend/postmaster/postmaster.c
parent376c649634bb3fbfad79940f996e2fcb4c2ea6bf (diff)
Replace pointer comparisons and assignments to literal zero with NULL
While 0 is technically correct, NULL is the semantically appropriate choice for pointers. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/aS1AYnZmuRZ8g%2B5G%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r--src/backend/postmaster/postmaster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 7c064cf9fbb..a956db4ad27 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -3391,7 +3391,7 @@ LaunchMissingBackgroundProcesses(void)
Shutdown <= SmartShutdown)
{
WalReceiverPMChild = StartChildProcess(B_WAL_RECEIVER);
- if (WalReceiverPMChild != 0)
+ if (WalReceiverPMChild != NULL)
WalReceiverRequested = false;
/* else leave the flag set, so we'll try again later */
}