File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000 by PostgreSQL Global Development Group
5
5
*
6
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.26 2000/03/27 21:11:37 petere Exp $
6
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.27 2000/04/11 17:35:50 momjian Exp $
7
7
*/
8
8
#include "postgres.h"
9
9
#include "command.h"
@@ -1456,14 +1456,15 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
1456
1456
fclose (stream );
1457
1457
}
1458
1458
1459
- /* remove temp file */
1460
- if (!filename_arg )
1459
+ }
1460
+
1461
+ /* remove temp file */
1462
+ if (!filename_arg )
1463
+ {
1464
+ if (remove (fname )== -1 )
1461
1465
{
1462
- if (remove (fname )== -1 )
1463
- {
1464
- psql_error ("%s: %s\n" , fname , strerror (errno ));
1465
- error = true;
1466
- }
1466
+ psql_error ("%s: %s\n" , fname , strerror (errno ));
1467
+ error = true;
1467
1468
}
1468
1469
}
1469
1470
You can’t perform that action at this time.
0 commit comments