Bug 719726 - Click on File -> Open seg-faults

in gnc_uri_get_components in gnucash gnc-uri-utils.c:137

g_strsplit doesn't return a 2-element array if presented with an
empty string.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23478 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-12-02 23:46:49 +00:00
parent 219c780641
commit 839f7f54a9

View File

@ -98,7 +98,7 @@ void gnc_uri_get_components (const gchar *uri,
*password = NULL;
*path = NULL;
g_return_if_fail( uri != NULL );
g_return_if_fail( uri != NULL && strlen (uri) > 0);
splituri = g_strsplit ( uri, "://", 2 );
if ( splituri[1] == NULL )