# HG changeset patch # User J. Ali Harlow # Date 1528456489 -3600 # Node ID a69a7f215b922cd0d11e1afe9503e9bf5ddec261 # Parent 2ba231a7973ef32c56207b0e1d288b4c70304735 Fix bug causing PloverPackageSet to treat '' and 'file:/' as distinct root URIs diff -r 2ba231a7973e -r a69a7f215b92 plover/packageset.c --- a/plover/packageset.c Thu Jun 07 15:56:09 2018 +0100 +++ b/plover/packageset.c Fri Jun 08 12:14:49 2018 +0100 @@ -131,6 +131,8 @@ g_return_val_if_fail(PLOVER_IS_PACKAGE_SET(set),FALSE); g_return_val_if_fail(plover__uri_validate(root_uri),FALSE); priv=PLOVER_PACKAGE_SET_GET_PRIVATE(set); + if (!root_uri || !*root_uri) + root_uri="file:/"; /* * If we're opening a different root_uri, then we can simply open the * new root first and then close the old root if we're successful.