Skip to content

Commit 0c3663b

Browse files
committed
Add comment to postmaster.c that get_progname() will call exit if it
can't strdup().
1 parent b0830e3 commit 0c3663b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.435 2004/10/21 19:28:35 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.436 2004/11/02 03:34:50 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -313,7 +313,8 @@ PostmasterMain(int argc, char *argv[])
313313
char *userDoption = NULL;
314314
int i;
315315

316-
progname = get_progname(argv[0]);
316+
/* This will call exit() if strdup() fails. */
317+
progname = get_progname(argv[0]);
317318

318319
MyProcPid = PostmasterPid = getpid();
319320

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy