mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
219c780641
commit
839f7f54a9
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user