commit | d732287cdd988b4ad79718a6adcb4ba81c023de2 | [log] [tgz] |
---|---|---|
author | James Feist <james.feist@linux.intel.com> | Mon Jan 28 11:25:00 2019 -0800 |
committer | James Feist <james.feist@linux.intel.com> | Mon Jan 28 20:48:42 2019 +0000 |
tree | ffbfaadee4b080f9bce8e8940589224bb0f934c8 | |
parent | a82779fb66e30b0387077c28e6aec2dc1a957a61 [diff] |
Fix looking for objects on root path The current code would not remove the "/" for the root path causing a subtree or other call with path being "/" to miss any object exposed on "/". Fix this so that "/" is removed when it is the only character. Tested-by: Phosphor-pid-control stopped throwing when looking for object managers. Change-Id: I8ff49617d661910f22cc95409cd2df2489862b5f Signed-off-by: James Feist <james.feist@linux.intel.com>