Commit 2e0e5631 authored by Tom Lane's avatar Tom Lane

Avoid trying to print a NULL char pointer in --describe-config. On some

platforms this works, but on some it crashes.  Zdenek Kotala
parent 9713c063
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.19 2008/01/01 19:45:54 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.20 2008/02/23 19:23:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -117,7 +117,7 @@ printMixedStruct(mixedStruct *structToPrint) ...@@ -117,7 +117,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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment