Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6f1aa94

Browse files
committed
Fix breakage from GUC-extension-variables patch.
1 parent 2095206 commit 6f1aa94

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/backend/utils/misc/help_config.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.10 2004/05/26 15:07:39 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.11 2004/06/02 18:09:32 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -46,13 +46,16 @@ static bool displayStruct(mixedStruct *structToDisplay);
4646
int
4747
GucInfoMain(void)
4848
{
49-
int i;
50-
struct config_generic **guc_vars = get_guc_variables();
51-
int numOpts = GetNumConfigOptions();
49+
struct config_generic **guc_vars;
50+
int numOpts,
51+
i;
5252

5353
/* Initialize the guc_variables[] array */
5454
build_guc_variables();
5555

56+
guc_vars = get_guc_variables();
57+
numOpts = GetNumConfigOptions();
58+
5659
for (i = 0; i < numOpts; i++)
5760
{
5861
mixedStruct *var = (mixedStruct *) guc_vars[i];

0 commit comments

Comments
 (0)