]> granicus.if.org Git - postgresql/commitdiff
This patch fixes one of two problems with grant/revoke statements on the
authorMarc G. Fournier <scrappy@hub.org>
Sun, 25 Jan 1998 04:07:00 +0000 (04:07 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 25 Jan 1998 04:07:00 +0000 (04:07 +0000)
Linux platform.

From: James Hughes <jamesh@interpath.com>

src/backend/utils/init/miscinit.c

index e608bb484f8a96c6fee09c51bf0af4f9a84e306f..fe26cdde864c64ffdd2064efe4f4f73a15419285 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.8 1997/09/08 02:31:57 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.9 1998/01/25 04:07:00 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -226,7 +226,7 @@ GetProcessingMode()
 char      *
 GetDatabasePath()
 {
-       return DatabasePath;
+       return strdup(DatabasePath);
 }
 
 /*
@@ -236,7 +236,7 @@ GetDatabasePath()
 char      *
 GetDatabaseName()
 {
-       return DatabaseName;
+       return strdup(DatabaseName);
 }
 
 void