BUG #18230: Redundant comparison of a local variable 'tzp' address with a NULL value at dt_common.c

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #18230: Redundant comparison of a local variable 'tzp' address with a NULL value at dt_common.c
Дата
Msg-id 18230-c68eb05e05cb9177@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #18230: Redundant comparison of a local variable 'tzp' address with a NULL value at dt_common.c  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-bugs
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)
...
```


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Andrei Lepikhov
Дата:
Сообщение: Re: BUG #16925: ERROR: invalid DSA memory alloc request size 1073741824 CONTEXT: parallel worker
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: BUG #18230: Redundant comparison of a local variable 'tzp' address with a NULL value at dt_common.c