* 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 $
*
*-------------------------------------------------------------------------
*/
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];