aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_tar.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-10-29 15:51:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2010-10-29 15:51:52 -0400
commitbfd3f37be309c3647844aed937e6a66aad5fd3cb (patch)
tree5bc39a02df05c848eb88e300a25ef83af4cd43b6 /src/bin/pg_dump/pg_backup_tar.c
parent48a1fb23900d73e7d9cb2dc0408c745cd03597a7 (diff)
downloadpostgresql-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/bin/pg_dump/pg_backup_tar.c')
-rw-r--r--src/bin/pg_dump/pg_backup_tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c
index d7e4c463dd8..006f7dab72e 100644
--- a/src/bin/pg_dump/pg_backup_tar.c
+++ b/src/bin/pg_dump/pg_backup_tar.c
@@ -576,7 +576,7 @@ tarWrite(const void *buf, size_t len, TAR_MEMBER *th)
{
size_t res;
- if (th->zFH != 0)
+ if (th->zFH != NULL)
res = GZWRITE((void *) buf, 1, len, th->zFH);
else
res = fwrite(buf, 1, len, th->nFH);