Index: postgres.c
===================================================================
RCS file: /home/alvherre/cvs/pgsql-server/src/backend/tcop/postgres.c,v
retrieving revision 1.400
diff -c -r1.400 postgres.c
*** postgres.c  19 Apr 2004 17:42:58 -0000  1.400
--- postgres.c  24 Apr 2004 02:20:47 -0000
***************
*** 2686,2692 ****
                     errhint("Try \"%s --help\" for more information.", argv[0])));
        }
        else if (argc - optind == 1)
!           dbname = argv[optind];
        else if ((dbname = username) == NULL)
        {
            ereport(FATAL,
--- 2648,2654 ----
                     errhint("Try \"%s --help\" for more information.", argv[0])));
        }
        else if (argc - optind == 1)
!           dbname = pstrdup(argv[optind]);
        else if ((dbname = username) == NULL)
        {
            ereport(FATAL,
