Initialize conn->Pfdebug to NULL when creating a connection
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 31 Mar 2021 22:16:58 +0000 (19:16 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 31 Mar 2021 22:19:57 +0000 (19:19 -0300)
commitaba24b51cc1b045a9810458b4bb15fee2c182948
treec9a9ea707bfe19e5b04ac1eb4657c4117b7983af
parenta6d3dea8e5e0c8a0df2f95d66b6c3903a4354ca0
Initialize conn->Pfdebug to NULL when creating a connection

Failing to do this can cause a crash, and I suspect is what has happened
with a buildfarm member reporting mysterious failures.

This is an ancient bug, but I'm not backpatching since evidently nobody
cares about PQtrace in older releases.

Discussion: https://postgr.es/m/3333908.1617227066@sss.pgh.pa.us
src/interfaces/libpq/fe-connect.c