aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r--src/bin/psql/psql.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 88396d48c71..d3b93f32d85 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.186 1999/07/19 16:49:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.187 1999/07/19 21:06:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2876,9 +2876,11 @@ main(int argc, char **argv)
pqsignal(SIGINT, handle_sigint); /* control-C => cancel */
#ifdef USE_READLINE
settings.useReadline = 1;
- /* Set the application name, used for parsing .inputrc */
- char *progname = strrchr(argv[0], SEP_CHAR);
- rl_readline_name = (progname ? progname+1 : argv[0]);
+ {
+ /* Set the application name, used for parsing .inputrc */
+ char *progname = strrchr(argv[0], SEP_CHAR);
+ rl_readline_name = (progname ? progname+1 : argv[0]);
+ }
#endif
}
#ifdef PSQL_ALWAYS_GET_PASSWORDS