From: Tom Lane Date: Sat, 23 Feb 2008 19:23:37 +0000 (+0000) Subject: Avoid trying to print a NULL char pointer in --describe-config. On some X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=5945381551d2888267e3701e31f1c3fadc98a07c;p=users%2Fbernd%2Fpostgres.git Avoid trying to print a NULL char pointer in --describe-config. On some platforms this works, but on some it crashes. Zdenek Kotala --- diff --git a/src/backend/utils/misc/help_config.c b/src/backend/utils/misc/help_config.c index 681cd57c6d..79c0d854be 100644 --- a/src/backend/utils/misc/help_config.c +++ b/src/backend/utils/misc/help_config.c @@ -117,7 +117,7 @@ printMixedStruct(mixedStruct *structToPrint) case PGC_STRING: printf("STRING\t%s\t\t\t", - structToPrint->string.boot_val); + structToPrint->string.boot_val ? structToPrint->string.boot_val : ""); break; default: