*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.76 1997/06/29 17:29:28 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.77 1997/07/14 22:08:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
fe_setauthsvc(optarg, errbuf);
break;
case 'c':
- singleQuery = optarg;
+ singleQuery = strdup(optarg);
if (singleQuery[0] == '\\') {
singleSlashCmd = 1;
}
qfilename = optarg;
break;
case 'F':
- settings.opt.fieldSep = optarg;
+ settings.opt.fieldSep = strdup(optarg);
break;
case 'l':
listDatabases = 1;
settings.opt.header = 0;
break;
case 'T':
- settings.opt.tableOpt = optarg;
+ settings.opt.tableOpt = strdup(optarg);
break;
case 'u':
settings.getPassword = 1;
sprintf(line, "\\i %s", qfilename);
}
HandleSlashCmds(&settings, line, "");
- if (!singleSlashCmd) free (line); /* PURIFY */
-
+ free (line); /* PURIFY */
} else {
if (singleQuery) {
bool success; /* The query succeeded at the backend */