From fe36d461c2ef101b1c1047dfe43530bd87080f9d Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Mon, 10 Nov 1997 15:15:40 +0000 Subject: [PATCH] Add errormsg initialization from patch by Keith Parks. --- src/backend/utils/init/postinit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 1589c83dce..6992238811 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.16 1997/11/07 20:51:58 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.17 1997/11/10 15:15:40 thomas Exp $ * * NOTES * InitPostgres() is the function called from PostgresMain @@ -168,6 +168,8 @@ VerifySystemDatabase() int fd; char errormsg[1000]; + errormsg[0] = '\0'; + if ((fd = open(DataDir, O_RDONLY, 0)) == -1) sprintf(errormsg, "Database system does not exist. " "PGDATA directory '%s' not found.\n\tNormally, you " -- GitLab