From: Tom Lane Date: Sat, 23 Feb 2008 19:23:51 +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=6112fe58fff1f6f55842600696c79e33e383446a;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 fcbea33873..7222e2f3c0 100644 --- a/src/backend/utils/misc/help_config.c +++ b/src/backend/utils/misc/help_config.c @@ -118,7 +118,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: