There was a segfault because of the strcpy (seems rather obvious now)

Reported by: Cedric Villemain
Fixed by me
This commit is contained in:
Jaime Casanova
2010-09-30 12:15:43 -05:00
parent 72fe188b1c
commit 4660c4ea13

View File

@@ -240,7 +240,7 @@ do_standby_clone(void)
const char *last_wal_segment = NULL;
if (dest_dir == NULL)
strcpy(dest_dir, ".");
dest_dir = ".";
/* Check this directory could be used as a PGDATA dir */
switch (check_dir(dest_dir))