mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Avoid trying to print a NULL char pointer in --describe-config. On some
platforms this works, but on some it crashes. Zdenek Kotala
This commit is contained in:
parent
652ef8658a
commit
fd511b5347
@ -10,7 +10,7 @@
|
|||||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.14 2004/12/31 22:02:45 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.14.4.1 2008/02/23 19:23:57 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -118,7 +118,7 @@ printMixedStruct(mixedStruct *structToPrint)
|
|||||||
|
|
||||||
case PGC_STRING:
|
case PGC_STRING:
|
||||||
printf("STRING\t%s\t\t\t",
|
printf("STRING\t%s\t\t\t",
|
||||||
structToPrint->string.boot_val);
|
structToPrint->string.boot_val ? structToPrint->string.boot_val : "");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user