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

index 926ab6014bc9b5fe49c2ec593985035ae6783505..21cd59161361a2f879c0b4a2e8ab0b97d1a8db24 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];