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:38 +0000 (12:17 -0400)
commit0b0baf26211a98a8593279fa24635bc4dd9ac99d
treee3b48e3d8cad3594cd86db96307561cde6321f6b
parentb000afea6596c4dab2f0595ded751659a158b754
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