mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user