OSDN Git Service

Fix breakage from GUC-extension-variables patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Jun 2004 18:09:32 +0000 (18:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Jun 2004 18:09:32 +0000 (18:09 +0000)
src/backend/utils/misc/help_config.c

index 926ab60..21cd591 100644 (file)
@@ -10,7 +10,7 @@
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.10 2004/05/26 15:07:39 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/misc/help_config.c,v 1.11 2004/06/02 18:09:32 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -46,13 +46,16 @@ static bool displayStruct(mixedStruct *structToDisplay);
 int
 GucInfoMain(void)
 {
-       int                     i;
-       struct config_generic **guc_vars = get_guc_variables();
-       int numOpts = GetNumConfigOptions();
+       struct config_generic **guc_vars;
+       int                     numOpts,
+                               i;
 
        /* Initialize the guc_variables[] array */
        build_guc_variables();
 
+       guc_vars = get_guc_variables();
+       numOpts = GetNumConfigOptions();
+
        for (i = 0; i < numOpts; i++)
        {
                mixedStruct *var = (mixedStruct *) guc_vars[i];