summaryrefslogtreecommitdiff
path: root/src/port/path.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-10-13 15:37:14 +0000
committerBruce Momjian <bruce@momjian.us>2005-10-13 15:37:14 +0000
commit32e6c2a160754020adfa3a7744cffb448b1dcddb (patch)
treea3b297870ce8ae7e7cadf33802adc9dd34c2c76a /src/port/path.c
parent203015ebddee0bc7ee8db97785c2abaa0a3e79e4 (diff)
downloadpostgresql-32e6c2a160754020adfa3a7744cffb448b1dcddb.tar.gz
Use get_progname() in backend main.c, rather than port-specific hack
that is too fragile.
Diffstat (limited to 'src/port/path.c')
-rw-r--r--src/port/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/path.c b/src/port/path.c
index bdb6e29adf..a1c91a24dd 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -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);