*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.177 1999/05/03 19:10:08 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.178 1999/05/12 23:26:03 tgl Exp $
*
*-------------------------------------------------------------------------
*/
* of passing them around through many function parameter lists seems
* worse.
*/
-static FILE * cur_cmd_source = stdin; /* current source of command input */
+static FILE * cur_cmd_source = NULL; /* current source of command input */
static bool cur_cmd_interactive = false; /* is it an interactive source? */
char *home = NULL; /* Used to store $HOME */
char *version = NULL; /* PostgreSQL version */
+ /* initialize cur_cmd_source in case we do not use MainLoop ...
+ * some systems fail if we try to use a static initializer for this :-(
+ */
+ cur_cmd_source = stdin;
+ cur_cmd_interactive = false;
+
MemSet(&settings, 0, sizeof settings);
settings.opt.align = 1;
settings.opt.header = 1;