pgsql: Remove dead code in pg_dump.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove dead code in pg_dump.
Дата
Msg-id E1aKqMI-0007V0-Pi@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove dead code in pg_dump.

Coverity quite reasonably complained that this check for fout==NULL
occurred after we'd already dereferenced fout.  However, the check
is just dead code since there is no code path by which CreateArchive
can return a null pointer.  Errors such as can't-open-that-file are
reported down inside CreateArchive, and control doesn't return.
So let's silence the warning by removing the dead code, rather than
continuing to pretend it does something.

Coverity didn't complain about this before 5b5fea2a1, so back-patch
to 9.5 like that patch.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6b3b3a502e5d96cd992470bd408dd7457139caf0

Modified Files
--------------
src/bin/pg_dump/pg_dump.c |    3 ---
1 file changed, 3 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: psql: Add completion support for DROP INDEX CONCURRENTLY
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove dead code in pg_dump.