Commit db94419
committed
pgbench: fix segfault with empty sql file
Commit 1d0c3b3 introduced a bug that causes pgbench to crash if an
empty script file is specified. Fix it by rejecting such files at
startup, which is the historical and intended behavior.
Reported-By: Jeff Janes
Discussion: https://www.postgresql.org/message-id/CAMkU=1zxKUbLPOt9hQWFp14pTc=V0cGo2GQBbn2GsK2Pu+8ZfA@mail.gmail.com1 parent d03130d commit db94419
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2686 | 2686 | | |
2687 | 2687 | | |
2688 | 2688 | | |
2689 | | - | |
| 2689 | + | |
| 2690 | + | |
2690 | 2691 | | |
2691 | 2692 | | |
2692 | 2693 | | |
| |||
0 commit comments