aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2002-05-14 04:20:15 +0000
committerTatsuo Ishii <ishii@postgresql.org>2002-05-14 04:20:15 +0000
commitcd61650f89a4de6728f4fd61b5f349a33be62497 (patch)
treef44e60cc6423f5b19a4d97775c36efcfad57e748 /src
parente25c93c7eb4a9a1a50b771cc33448b9d3519f403 (diff)
downloadpostgresql-cd61650f89a4de6728f4fd61b5f349a33be62497.tar.gz
postgresql-cd61650f89a4de6728f4fd61b5f349a33be62497.zip
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 <iakio@pjam.jpweb.net>.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/startup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c
index 765f6db9013..fee8c98a5f7 100644
--- a/src/bin/psql/startup.c
+++ b/src/bin/psql/startup.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.56 2002/04/10 22:47:04 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.57 2002/05/14 04:20:15 ishii Exp $
*/
#include "postgres_fe.h"
@@ -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;