88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.197 2004/12/31 21:59:34 pgsql Exp $
11+ * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.198 2005/01/14 21:08:44 tgl Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -206,6 +206,7 @@ static IndexList *ILHead = NULL;
206206int
207207BootstrapMain (int argc ,char * argv [])
208208{
209+ char * progname = argv [0 ];
209210int i ;
210211char * dbname ;
211212int flag ;
@@ -228,9 +229,9 @@ BootstrapMain(int argc, char *argv[])
228229/* Compute paths, if we didn't inherit them from postmaster */
229230if (my_exec_path [0 ]== '\0' )
230231{
231- if (find_my_exec (argv [ 0 ] ,my_exec_path )< 0 )
232+ if (find_my_exec (progname ,my_exec_path )< 0 )
232233elog (FATAL ,"%s: could not locate my own executable path" ,
233- argv [ 0 ] );
234+ progname );
234235}
235236
236237/*
@@ -351,7 +352,7 @@ BootstrapMain(int argc, char *argv[])
351352/* Acquire configuration parameters, unless inherited from postmaster */
352353if (!IsUnderPostmaster )
353354{
354- if (!SelectConfigFiles (userDoption ,argv [ 0 ] ))
355+ if (!SelectConfigFiles (userDoption ,progname ))
355356proc_exit (1 );
356357}
357358