Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fe36d46

Browse files
author
Thomas G. Lockhart
committed
Add errormsg initialization from patch by Keith Parks.
1 parent 2b51c92 commit fe36d46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/utils/init/postinit.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.16 1997/11/07 20:51:58 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.17 1997/11/10 15:15:40 thomas Exp $
1111
*
1212
* NOTES
1313
* InitPostgres() is the function called from PostgresMain
@@ -168,6 +168,8 @@ VerifySystemDatabase()
168168
int fd;
169169
char errormsg[1000];
170170

171+
errormsg[0] = '\0';
172+
171173
if ((fd = open(DataDir, O_RDONLY, 0)) == -1)
172174
sprintf(errormsg, "Database system does not exist. "
173175
"PGDATA directory '%s' not found.\n\tNormally, you "

0 commit comments

Comments
 (0)