Skip to content
Snippets Groups Projects
Commit fe36d461 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Add errormsg initialization from patch by Keith Parks.

parent 2b51c92d
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* InitPostgres() is the function called from PostgresMain * InitPostgres() is the function called from PostgresMain
...@@ -168,6 +168,8 @@ VerifySystemDatabase() ...@@ -168,6 +168,8 @@ VerifySystemDatabase()
int fd; int fd;
char errormsg[1000]; char errormsg[1000];
errormsg[0] = '\0';
if ((fd = open(DataDir, O_RDONLY, 0)) == -1) if ((fd = open(DataDir, O_RDONLY, 0)) == -1)
sprintf(errormsg, "Database system does not exist. " sprintf(errormsg, "Database system does not exist. "
"PGDATA directory '%s' not found.\n\tNormally, you " "PGDATA directory '%s' not found.\n\tNormally, you "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment