mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
Fix getting information for root.
This commit is contained in:
@@ -28,6 +28,11 @@ bool GetChildNode(const std::string& name,
|
||||
bool GetNodeFromPath(std::string path,
|
||||
const base::DictionaryValue* root,
|
||||
const base::DictionaryValue** out) {
|
||||
if (path == "") {
|
||||
*out = root;
|
||||
return true;
|
||||
}
|
||||
|
||||
for (size_t delimiter_position = path.find('/');
|
||||
delimiter_position != std::string::npos;
|
||||
delimiter_position = path.find('/')) {
|
||||
|
||||
Reference in New Issue
Block a user