1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Use get_progname() in backend main.c, rather than port-specific hack

that is too fragile.
This commit is contained in:
Bruce Momjian
2005-10-13 15:37:14 +00:00
parent 203015ebdd
commit 32e6c2a160
2 changed files with 4 additions and 12 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/path.c,v 1.59 2005/09/27 17:39:35 tgl Exp $
* $PostgreSQL: pgsql/src/port/path.c,v 1.60 2005/10/13 15:37:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -403,7 +403,7 @@ get_progname(const char *argv0)
{
char *progname;
progname = strdup(nodir_name);
progname = strdup(nodir_name); /* leaks memory, but called only once */
if (progname == NULL)
{
fprintf(stderr, "%s: out of memory\n", nodir_name);