Avoid crash in "postgres -C guc" for a GUC with a null string value.
authorTom Lane <[email protected]>
Thu, 16 Jun 2016 16:17:03 +0000 (12:17 -0400)
committerTom Lane <[email protected]>
Thu, 16 Jun 2016 16:17:11 +0000 (12:17 -0400)
commit4f5995dd983db31bce347411c16ecc7319a2d9af
tree3ae5c8b0d9838d505ecfe65e60f604c2871f0d7b
parent455812da4820b21c938fac840c17e68d4ec856a9
Avoid crash in "postgres -C guc" for a GUC with a null string value.

Emit "(null)" instead, which was the behavior all along on platforms
that don't crash, eg OS X.  Per report from Jehan-Guillaume de Rorthais.
Back-patch to 9.2 where -C option was introduced.

Michael Paquier

Report: <20160615204036.2d35d86a@firost>
src/backend/postmaster/postmaster.c