fix postgres core dump

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3525 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-01-25 18:46:39 +00:00
parent 82fc84f7ed
commit 126f274e17

View File

@ -812,7 +812,7 @@ xaccResolveURL (const char * pathfrag)
!strncmp (pathfrag, "https://", 8) ||
!strncmp (pathfrag, "postgres://", 11) )
{
return (char *) pathfrag;
return g_strdup(pathfrag);
}
if (!strncmp (pathfrag, "file:", 5)) {