mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 12:20:31 +01:00
if (settings->opt.fieldSep);
^ - deleted
free(settings->opt.fieldSep);
This commit is contained in:
parent
8c68e07561
commit
76fae39d02
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.37.2.1 1996/12/11 23:07:37 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.37.2.2 1996/12/14 08:19:40 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -1092,7 +1092,7 @@ HandleSlashCmds(PsqlSettings * settings,
|
||||||
char *fs = DEFAULT_FIELD_SEP;
|
char *fs = DEFAULT_FIELD_SEP;
|
||||||
if (optarg)
|
if (optarg)
|
||||||
fs = optarg;
|
fs = optarg;
|
||||||
if (settings->opt.fieldSep);
|
if (settings->opt.fieldSep)
|
||||||
free(settings->opt.fieldSep);
|
free(settings->opt.fieldSep);
|
||||||
if (!(settings->opt.fieldSep = strdup(fs))) {
|
if (!(settings->opt.fieldSep = strdup(fs))) {
|
||||||
perror("malloc");
|
perror("malloc");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user