Unneeded NULL-pointer check in FreeSpaceMapTruncateRel - Mailing list pgsql-hackers

From Michael Paquier
Subject Unneeded NULL-pointer check in FreeSpaceMapTruncateRel
Date
Msg-id CAB7nPqSCwCWyAt5bFdOmBVUXU6qzmzcAcWgRmd3O-=B-tVLQBg@mail.gmail.com
Whole thread Raw
Responses Re: Unneeded NULL-pointer check in FreeSpaceMapTruncateRel  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi all,

In the category of nitpicky-code-style-issues, FreeSpaceMapTruncateRel
is doing a NULL-pointer check for something that has been dereferenced
on all the code paths leading to this check.
(Yes, that's not interesting for common humans, Coverity sees things
based on correctness).

Regards,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Missing checks on return value of timestamp2tm in datetime.c
Next
From: Michael Paquier
Date:
Subject: Re: Missing checks on return value of timestamp2tm in datetime.c