pg_regress/pg_isolation_regress: Fix possible nullptr dereference.

2022-11-30 Thread Xing Guo
Hi hackers, While playing with pg_regress and pg_isolation_regress, I noticed that there's a potential nullptr deference in both of them. How to reproduce: Specify the `--dbname=` option without providing any database name. //pg_regress --dbname= foo //pg_isolation_regress --dbname= foo Pa

Re: pg_regress/pg_isolation_regress: Fix possible nullptr dereference.

2022-11-30 Thread Tom Lane
Xing Guo writes: > While playing with pg_regress and pg_isolation_regress, I noticed that > there's a potential nullptr deference in both of them. > How to reproduce: > Specify the `--dbname=` option without providing any database name. Hmm, yeah, I see that too. > Patch is attached. This patch