Re: libpq support for NegotiateProtocolVersion

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Re: libpq support for NegotiateProtocolVersion
Дата
Msg-id CAEudQAqG+nBgbdPfk9LxGMX5i6yxDKGNfpP6JQZHGF4fWEZ7+Q@mail.gmail.com
обсуждение исходный текст
Ответ на libpq support for NegotiateProtocolVersion  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: libpq support for NegotiateProtocolVersion
Список pgsql-hackers
Hi.

Per Coverity.

CID 1596094: (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: Since the loop increment i++; is unreachable, the loop body will never execute more than once. 

The code of the function *pqGetNegotiateProtocolVersion3* is a little confusing.

I believe that the Coverity alert is valid.
The function never returns 0.

best regards,
Ranier Vilela

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