From: Tatsuo Ishii Date: Tue, 14 May 2002 04:20:15 +0000 (+0000) Subject: Fix bug in psql. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=37bf3bf57e2362faa2cf25917e9ab498bb395dbc;p=users%2Fbernd%2Fpostgres.git Fix bug in psql. per report from sugita@sra.co.jp on Thu, 09 May 2002 11:57:51 +0900 (JST) at pgsql-patches list. Illegal long options to pg_dump makes core on some systems, since it lacks the last null sentinel of struct option array. Attached is a patch made by Mr. Ishida Akio . --- diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index 58e4f2d4a1..536c2b6a95 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -361,6 +361,7 @@ parse_psql_options(int argc, char *argv[], struct adhoc_opts * options) {"expanded", no_argument, NULL, 'x'}, {"no-psqlrc", no_argument, NULL, 'X'}, {"help", no_argument, NULL, '?'}, + {NULL, 0, NULL, 0} }; int optindex;