pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: rekgrpth@gmail.com
Subject: BUG #18230: Redundant comparison of a local variable 'tzp' address with a NULL value at dt_common.c
Date: Wed, 06 Dec 2023 04:49:39 +0000
Message-ID: <18230-c68eb05e05cb9177@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18230
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 16.1
Operating system:   all
Description:        

All versions of PostgreSQL has redundant comparison of a local variable
'tzp' address with a NULL value at dt_common.c in DecodeDateTime function.

```c
...
	int			t = 0;
	int		   *tzp = &t;
...
	if (tzp != NULL)
...

					if (tzp == NULL)
...
```



view thread (11+ messages)  latest in thread

Message-ID: <18230-c68eb05e05cb9177@postgresql.org>
Permalink:  ../18230-c68eb05e05cb9177@postgresql.org/
Also on:    postgresql.org/message-id/18230-c68eb05e05cb9177@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, rekgrpth@gmail.com
  Subject: Re: BUG #18230: Redundant comparison of a local variable 'tzp' address with a NULL value at dt_common.c
  In-Reply-To: <18230-c68eb05e05cb9177@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox