- Notifications
You must be signed in to change notification settings - Fork5
Commit1fea0c0
committed
Minor fixups for psql's process_file() function.
- Avoid closing stdin, since we didn't open it. Previously multipleinclusions of stdin would be terminated with a single quit, now a separatequit is needed for each invocation. Previous behavior also accessed stdinafter it was fclose()d, which is undefined behavior per ANSI C.- Properly restore pset.inputfile, since the caller expects to be ableto free that memory.Marti Raudsepp1 parent5c38782 commit1fea0c0
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
1990 | | - | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
1991 | 1994 | | |
1992 | 1995 | | |
1993 | 1996 | | |
| |||
2000 | 2003 | | |
2001 | 2004 | | |
2002 | 2005 | | |
2003 | | - | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
2004 | 2010 | | |
2005 | 2011 | | |
2006 | 2012 | | |
2007 | 2013 | | |
2008 | 2014 | | |
2009 | | - | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
2010 | 2019 | | |
2011 | 2020 | | |
2012 | 2021 | | |
| |||
0 commit comments
Comments
(0)